From 26ee6975a073bd102515470aebc96e42ec3eaf22 Mon Sep 17 00:00:00 2001 From: Leo Horie Date: Wed, 2 Apr 2014 15:24:21 -0400 Subject: [PATCH] don't assume document if no root element --- mithril.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mithril.js b/mithril.js index 1bc3adba..f666364e 100644 --- a/mithril.js +++ b/mithril.js @@ -187,7 +187,7 @@ new function(window) { m.endComputation() } m.redraw = function() { - m.render(currentRoot || window.document, currentModule.view(currentController)) + m.render(currentRoot, currentModule.view(currentController)) lastRedraw = now } function redraw() {