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

Function removeVnodes

static/vuejs/vue.esm.js:4787–4799  ·  view source on GitHub ↗
(parentElm, vnodes, startIdx, endIdx)

Source from the content-addressed store, hash-verified

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