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()