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

Function cloneVNode

static/vuejs/vue.runtime.common.js:1605–1620  ·  view source on GitHub ↗
(vnode)

Source from the content-addressed store, hash-verified

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

Callers 2

cloneVNodesFunction · 0.70
renderStaticFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected