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

Function removeVnodes

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

Source from the content-addressed store, hash-verified

4777 }
4778
4779 function removeVnodes (parentElm, vnodes, startIdx, endIdx) {
4780 for (; startIdx <= endIdx; ++startIdx) {
4781 var ch = vnodes[startIdx];
4782 if (isDef(ch)) {
4783 if (isDef(ch.tag)) {
4784 removeAndInvokeRemoveHook(ch);
4785 invokeDestroyHook(ch);
4786 } else { // Text node
4787 removeNode(ch.elm);
4788 }
4789 }
4790 }
4791 }
4792
4793 function removeAndInvokeRemoveHook (vnode, rm) {
4794 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