From 62eae50b20ffcbe02774a79bd7986caf7847e495 Mon Sep 17 00:00:00 2001 From: Leo Horie Date: Sun, 30 Mar 2014 14:36:16 -0400 Subject: [PATCH] invalidate dom cache on new module --- mithril.js | 1 + 1 file changed, 1 insertion(+) diff --git a/mithril.js b/mithril.js index a986161a..d99f0dd4 100644 --- a/mithril.js +++ b/mithril.js @@ -180,6 +180,7 @@ new function(window) { var currentRoot, currentModule = {view: function() {}}, currentController = {}, now = 0, lastRedraw = 0, lastRedrawId = 0 m.module = function(root, module) { m.startComputation() + cellCache = {} currentRoot = root currentModule = module currentController = new module.controller