Add a static vnode.skip field

This commit is contained in:
Pierre-Yves Gerardy 2016-08-16 22:56:42 +02:00
parent 5f2c9a3a29
commit 58cea7a283
2 changed files with 2 additions and 2 deletions

View file

@ -1,5 +1,5 @@
function Vnode(tag, key, attrs, children, text, dom) {
return {tag: tag, key: key, attrs: attrs, children: children, text: text, dom: dom, domSize: undefined, state: {}, events: undefined, instance: undefined}
return {tag: tag, key: key, attrs: attrs, children: children, text: text, dom: dom, domSize: undefined, state: {}, events: undefined, instance: undefined, skip: false}
}
Vnode.normalize = function(node) {
if (node instanceof Array) return Vnode("[", undefined, undefined, Vnode.normalizeChildren(node), undefined, undefined)