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