diff --git a/mithril.js b/mithril.js index 2d15c8c5..e5883692 100644 --- a/mithril.js +++ b/mithril.js @@ -59,6 +59,7 @@ new function(window) { } } else if (dataType == "[object Object]") { + if (typeof data.tag != "string") return if (data.tag != cached.tag || Object.keys(data.attrs).join() != Object.keys(cached.attrs).join()) clear(cached.nodes) var node, isNew = cached.nodes.length === 0