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

Function deactivateChildComponent

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

Source from the content-addressed store, hash-verified

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

Callers 1

vue.runtime.jsFile · 0.70

Calls 2

isInInactiveTreeFunction · 0.70
callHookFunction · 0.70

Tested by

no test coverage detected