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

Function deactivateChildComponent

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

Source from the content-addressed store, hash-verified

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

Callers 1

vue.esm.jsFile · 0.70

Calls 2

isInInactiveTreeFunction · 0.70
callHookFunction · 0.70

Tested by

no test coverage detected