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

Function cloneVNode

static/vuejs/vue.runtime.esm.js:1603–1618  ·  view source on GitHub ↗
(vnode)

Source from the content-addressed store, hash-verified

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

Callers 2

cloneVNodesFunction · 0.70
renderStaticFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected