redraw: added strict true check

This commit is contained in:
Zolmeister 2014-08-16 12:50:46 -07:00
parent 8efa162d47
commit 5b13612e26

View file

@ -409,7 +409,7 @@ Mithril = m = new function app(window, undefined) {
m.redraw = function(force) {
var cancel = window.cancelAnimationFrame || window.clearTimeout
var defer = window.requestAnimationFrame || window.setTimeout
if (lastRedrawId && !force) {
if (lastRedrawId && force !== true) {
cancel(lastRedrawId)
lastRedrawId = defer(redraw, 0)
}