don't handle non-virtual-element objects

This commit is contained in:
Leo Horie 2014-03-20 15:41:50 -04:00
parent a7a9447cd6
commit ca6f3207b5

View file

@ -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