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

Function cloneVNode

static/vuejs/vue.esm.js:1607–1622  ·  view source on GitHub ↗
(vnode)

Source from the content-addressed store, hash-verified

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

Callers 2

cloneVNodesFunction · 0.70
renderStaticFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected