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

Function removeVnodes

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

Source from the content-addressed store, hash-verified

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