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

Function deactivateChildComponent

static/vuejs/vue.runtime.esm.js:2248–2262  ·  view source on GitHub ↗
(vm, direct)

Source from the content-addressed store, hash-verified

2246}
2247
2248function deactivateChildComponent (vm, direct) {
2249 if (direct) {
2250 vm._directInactive = true;
2251 if (isInInactiveTree(vm)) {
2252 return
2253 }
2254 }
2255 if (!vm._inactive) {
2256 vm._inactive = true;
2257 for (var i = 0; i < vm.$children.length; i++) {
2258 deactivateChildComponent(vm.$children[i]);
2259 }
2260 callHook(vm, 'deactivated');
2261 }
2262}
2263
2264function callHook (vm, hook) {
2265 var handlers = vm.$options[hook];

Callers 1

vue.runtime.esm.jsFile · 0.70

Calls 2

isInInactiveTreeFunction · 0.70
callHookFunction · 0.70

Tested by

no test coverage detected