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

Function removeVnodes

static/vuejs/vue.runtime.common.js:4785–4797  ·  view source on GitHub ↗
(parentElm, vnodes, startIdx, endIdx)

Source from the content-addressed store, hash-verified

4783 }
4784
4785 function removeVnodes (parentElm, vnodes, startIdx, endIdx) {
4786 for (; startIdx <= endIdx; ++startIdx) {
4787 var ch = vnodes[startIdx];
4788 if (isDef(ch)) {
4789 if (isDef(ch.tag)) {
4790 removeAndInvokeRemoveHook(ch);
4791 invokeDestroyHook(ch);
4792 } else { // Text node
4793 removeNode(ch.elm);
4794 }
4795 }
4796 }
4797 }
4798
4799 function removeAndInvokeRemoveHook (vnode, rm) {
4800 if (isDef(rm) || isDef(vnode.data)) {

Callers 3

updateChildrenFunction · 0.70
patchVnodeFunction · 0.70
createPatchFunctionFunction · 0.70

Calls 4

isDefFunction · 0.70
invokeDestroyHookFunction · 0.70
removeNodeFunction · 0.70

Tested by

no test coverage detected