From f9ba62cc3bb8d2c0c8da45f9db37fb34eb9dd195 Mon Sep 17 00:00:00 2001 From: Leo Horie Date: Sun, 10 Aug 2014 23:01:59 -0400 Subject: [PATCH] remove experimental api --- mithril.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/mithril.js b/mithril.js index 4853acfd..e6cd8721 100644 --- a/mithril.js +++ b/mithril.js @@ -378,11 +378,6 @@ Mithril = m = new function app(window, undefined) { } } m.redraw = function() { - if (prevented) { - prevented = false - return - } - var cancel = window.cancelAnimationFrame || window.clearTimeout var defer = window.requestAnimationFrame || window.setTimeout if (lastRedrawId) { @@ -394,7 +389,6 @@ Mithril = m = new function app(window, undefined) { lastRedrawId = defer(function() {lastRedrawId = null}, 0) } } - m.preventRedraw = function() {prevented = true} function redraw() { for (var i = 0; i < roots.length; i++) { if (controllers[i]) m.render(roots[i], modules[i].view(controllers[i]))