Merge branch 'rewrite' into array-isArray

This commit is contained in:
Barney Carroll 2016-11-24 16:26:10 +00:00
commit deaabb2684
5 changed files with 98 additions and 44 deletions

View file

@ -347,7 +347,7 @@ module.exports = function($window) {
var content = children[0].children
if (vnode.dom.innerHTML !== content) vnode.dom.innerHTML = content
}
else if (children != null || vnode.text != null) throw new Error("Child node of a contenteditable must be trusted")
else if (vnode.text != null || children != null && children.length !== 0) throw new Error("Child node of a contenteditable must be trusted")
}
//remove