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

Function invokeDestroyHook

static/vuejs/vue.common.js:4775–4787  ·  view source on GitHub ↗
(vnode)

Source from the content-addressed store, hash-verified

4773 }
4774
4775 function invokeDestroyHook (vnode) {
4776 var i, j;
4777 var data = vnode.data;
4778 if (isDef(data)) {
4779 if (isDef(i = data.hook) && isDef(i = i.destroy)) { i(vnode); }
4780 for (i = 0; i < cbs.destroy.length; ++i) { cbs.destroy[i](vnode); }
4781 }
4782 if (isDef(i = vnode.children)) {
4783 for (j = 0; j < vnode.children.length; ++j) {
4784 invokeDestroyHook(vnode.children[j]);
4785 }
4786 }
4787 }
4788
4789 function removeVnodes (parentElm, vnodes, startIdx, endIdx) {
4790 for (; startIdx <= endIdx; ++startIdx) {

Callers 2

removeVnodesFunction · 0.70
createPatchFunctionFunction · 0.70

Calls 2

isDefFunction · 0.70
iFunction · 0.70

Tested by

no test coverage detected