MCPcopy Index your code
hub / github.com/ygs-code/vue / removeVnodes

Function removeVnodes

vue.js:8470–8482  ·  view source on GitHub ↗
(parentElm, vnodes, startIdx, endIdx)

Source from the content-addressed store, hash-verified

8468 }
8469
8470 function removeVnodes(parentElm, vnodes, startIdx, endIdx) {
8471 for (; startIdx <= endIdx; ++startIdx) {
8472 var ch = vnodes[startIdx];
8473 if (isDef(ch)) {
8474 if (isDef(ch.tag)) {
8475 removeAndInvokeRemoveHook(ch);
8476 invokeDestroyHook(ch);
8477 } else { // Text node
8478 removeNode(ch.elm);
8479 }
8480 }
8481 }
8482 }
8483
8484 function removeAndInvokeRemoveHook(vnode, rm) {
8485 if (isDef(rm) || isDef(vnode.data)) {

Callers 3

updateChildrenFunction · 0.85
patchVnodeFunction · 0.85
createPatchFunctionFunction · 0.85

Calls 4

isDefFunction · 0.85
invokeDestroyHookFunction · 0.85
removeNodeFunction · 0.85

Tested by

no test coverage detected