redraw: added strict true check
This commit is contained in:
parent
8efa162d47
commit
5b13612e26
1 changed files with 1 additions and 1 deletions
|
|
@ -409,7 +409,7 @@ Mithril = m = new function app(window, undefined) {
|
||||||
m.redraw = function(force) {
|
m.redraw = function(force) {
|
||||||
var cancel = window.cancelAnimationFrame || window.clearTimeout
|
var cancel = window.cancelAnimationFrame || window.clearTimeout
|
||||||
var defer = window.requestAnimationFrame || window.setTimeout
|
var defer = window.requestAnimationFrame || window.setTimeout
|
||||||
if (lastRedrawId && !force) {
|
if (lastRedrawId && force !== true) {
|
||||||
cancel(lastRedrawId)
|
cancel(lastRedrawId)
|
||||||
lastRedrawId = defer(redraw, 0)
|
lastRedrawId = defer(redraw, 0)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue