remove experimental api
This commit is contained in:
parent
5bbd6c6478
commit
f9ba62cc3b
1 changed files with 0 additions and 6 deletions
|
|
@ -378,11 +378,6 @@ Mithril = m = new function app(window, undefined) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
m.redraw = function() {
|
m.redraw = function() {
|
||||||
if (prevented) {
|
|
||||||
prevented = false
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
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) {
|
if (lastRedrawId) {
|
||||||
|
|
@ -394,7 +389,6 @@ Mithril = m = new function app(window, undefined) {
|
||||||
lastRedrawId = defer(function() {lastRedrawId = null}, 0)
|
lastRedrawId = defer(function() {lastRedrawId = null}, 0)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
m.preventRedraw = function() {prevented = true}
|
|
||||||
function redraw() {
|
function redraw() {
|
||||||
for (var i = 0; i < roots.length; i++) {
|
for (var i = 0; i < roots.length; i++) {
|
||||||
if (controllers[i]) m.render(roots[i], modules[i].view(controllers[i]))
|
if (controllers[i]) m.render(roots[i], modules[i].view(controllers[i]))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue