From e7992553d9ffd336a48a1ab38fa8bc477e73d693 Mon Sep 17 00:00:00 2001 From: Leo Horie Date: Tue, 14 Apr 2015 21:51:56 -0400 Subject: [PATCH] #560 prevent scroll on next redraw if onunload calls preventDefault --- mithril.js | 1 + 1 file changed, 1 insertion(+) diff --git a/mithril.js b/mithril.js index 2c750b29..95b9d0e9 100644 --- a/mithril.js +++ b/mithril.js @@ -599,6 +599,7 @@ var m = (function app(window, undefined) { endFirstComputation(); return controllers[index] } + else computePostRedrawHook = null }; var redrawing = false m.redraw = function(force) {