don't assume document if no root element

This commit is contained in:
Leo Horie 2014-04-02 15:24:21 -04:00
parent 0f1d415d85
commit 26ee6975a0

View file

@ -187,7 +187,7 @@ new function(window) {
m.endComputation() m.endComputation()
} }
m.redraw = function() { m.redraw = function() {
m.render(currentRoot || window.document, currentModule.view(currentController)) m.render(currentRoot, currentModule.view(currentController))
lastRedraw = now lastRedraw = now
} }
function redraw() { function redraw() {