Merge pull request #205 from claydotio/forcedraw
redraw: added strict true check
This commit is contained in:
commit
f832b67585
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue