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

Function cloneVNode

static/vuejs/vue.js:1613–1628  ·  view source on GitHub ↗
(vnode)

Source from the content-addressed store, hash-verified

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

Callers 2

cloneVNodesFunction · 0.70
renderStaticFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected