Skip to content

Commit

Permalink
feat(vdom): clone subtree for prerendered elements
Browse files Browse the repository at this point in the history
  • Loading branch information
localvoid committed Oct 22, 2018
1 parent 27e8379 commit 2f9bfb3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/ivi/src/vdom/sync.ts
Expand Up @@ -224,9 +224,9 @@ function _instantiate(parent: Node, vnode: VNode, context: {}): Node {
}
/* istanbul ignore else */
if (DEBUG) {
node = ((tag as VNode)._i as Node).cloneNode(false);
node = ((tag as VNode)._i as Node).cloneNode(true);
} else {
node = nodeCloneNode.call((tag as VNode)._i as Node, false);
node = nodeCloneNode.call((tag as VNode)._i as Node, true);
}
}
instance = node;
Expand Down

0 comments on commit 2f9bfb3

Please sign in to comment.