Merge remote-tracking branch 'origin/rewrite' into rewrite
This commit is contained in:
commit
d70ef944a4
2 changed files with 2 additions and 2 deletions
|
|
@ -5,7 +5,7 @@ function Vnode(tag, key, attrs0, children, text, dom) {
|
|||
}
|
||||
Vnode.normalize = function(node) {
|
||||
if (node instanceof Array) return Vnode("[", undefined, undefined, Vnode.normalizeChildren(node), undefined, undefined)
|
||||
else if (node != null && typeof node !== "object") return Vnode("#", undefined, undefined, node, undefined, undefined)
|
||||
if (node != null && typeof node !== "object") return Vnode("#", undefined, undefined, node, undefined, undefined)
|
||||
return node
|
||||
}
|
||||
Vnode.normalizeChildren = function normalizeChildren(children) {
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ function Vnode(tag, key, attrs, children, text, dom) {
|
|||
}
|
||||
Vnode.normalize = function(node) {
|
||||
if (node instanceof Array) return Vnode("[", undefined, undefined, Vnode.normalizeChildren(node), undefined, undefined)
|
||||
else if (node != null && typeof node !== "object") return Vnode("#", undefined, undefined, node, undefined, undefined)
|
||||
if (node != null && typeof node !== "object") return Vnode("#", undefined, undefined, node, undefined, undefined)
|
||||
return node
|
||||
}
|
||||
Vnode.normalizeChildren = function normalizeChildren(children) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue