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

Function invokeDestroyHook

static/vuejs/vue.esm.js:4773–4785  ·  view source on GitHub ↗
(vnode)

Source from the content-addressed store, hash-verified

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