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

Function deactivateChildComponent

static/vuejs/vue.js:2258–2272  ·  view source on GitHub ↗
(vm, direct)

Source from the content-addressed store, hash-verified

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

Callers 1

vue.jsFile · 0.70

Calls 2

isInInactiveTreeFunction · 0.70
callHookFunction · 0.70

Tested by

no test coverage detected