MCPcopy Create free account
hub / github.com/TruthHun/BookStack / cloneVNode

Function cloneVNode

static/vuejs/vue.common.js:1609–1624  ·  view source on GitHub ↗
(vnode)

Source from the content-addressed store, hash-verified

1607// multiple renders, cloning them avoids errors when DOM manipulations rely
1608// on their elm reference.
1609function cloneVNode (vnode) {
1610 var cloned = new VNode(
1611 vnode.tag,
1612 vnode.data,
1613 vnode.children,
1614 vnode.text,
1615 vnode.elm,
1616 vnode.context,
1617 vnode.componentOptions
1618 );
1619 cloned.ns = vnode.ns;
1620 cloned.isStatic = vnode.isStatic;
1621 cloned.key = vnode.key;
1622 cloned.isCloned = true;
1623 return cloned
1624}
1625
1626function cloneVNodes (vnodes) {
1627 var len = vnodes.length;

Callers 2

cloneVNodesFunction · 0.70
renderStaticFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected