This commit is contained in:
jingsam 2017-03-08 17:08:10 +08:00
parent 1212d3da35
commit 92a0f30c44

View file

@ -51,7 +51,7 @@
render (createElement) {
function cloneVNode (vnode) {
const clonedChildren = vnode.children && vnode.children.map(vnode => cloneVNode(vnode)) || vnode.text;
const clonedChildren = vnode.children && vnode.children.map(vnode => cloneVNode(vnode));
const cloned = createElement(vnode.tag, vnode.data, clonedChildren);
cloned.text = vnode.text;
cloned.isComment = vnode.isComment;