From 006445960bcc2f1b668d2ec1040831590773b4e1 Mon Sep 17 00:00:00 2001 From: Leo Horie Date: Fri, 17 Apr 2015 22:13:15 -0400 Subject: [PATCH] clean up --- mithril.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mithril.js b/mithril.js index 60bf31e5..29f541a1 100644 --- a/mithril.js +++ b/mithril.js @@ -623,12 +623,11 @@ var m = (function app(window, undefined) { redrawing = false }; m.redraw.strategy = m.prop(); - var blank = function() {return ""} function redraw() { for (var i = 0, root; root = roots[i]; i++) { if (controllers[i]) { var args = components[i].controller && components[i].controller.$$args ? [controllers[i]].concat(components[i].controller.$$args) : [controllers[i]] - m.render(root, components[i].view ? components[i].view(controllers[i], args) : blank()) + m.render(root, components[i].view ? components[i].view(controllers[i], args) : "") } } //after rendering within a routed context, we need to scroll back to the top, and fetch the document title for history.pushState