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

Function deactivateChildComponent

static/vuejs/vue.runtime.common.js:2250–2264  ·  view source on GitHub ↗
(vm, direct)

Source from the content-addressed store, hash-verified

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

Callers 1

Calls 2

isInInactiveTreeFunction · 0.70
callHookFunction · 0.70

Tested by

no test coverage detected