From 0f5d051d4b12f5301a4491ca5b60abd54c73052a Mon Sep 17 00:00:00 2001 From: Leo Horie Date: Fri, 18 Jul 2014 20:14:38 -0400 Subject: [PATCH] prevent setting NodeList length --- mithril.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mithril.js b/mithril.js index cd23b3be..f2d10db2 100644 --- a/mithril.js +++ b/mithril.js @@ -241,7 +241,7 @@ Mithril = m = new function app(window) { if (cached[i]) unload(cached[i]) } } - nodes.length = 0 + if (nodes.length != 0) nodes.length = 0 } function unload(cached) { if (cached.configContext && typeof cached.configContext.onunload == "function") cached.configContext.onunload()