Merge pull request #205 from claydotio/forcedraw

redraw: added strict true check
This commit is contained in:
Zoli Kahan 2014-08-16 12:51:53 -07:00
commit f832b67585

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)
}