(vm, direct)
| 2246 | } |
| 2247 | |
| 2248 | function 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 | |
| 2264 | function callHook (vm, hook) { |
| 2265 | var handlers = vm.$options[hook]; |
no test coverage detected