(queue)
| 4449 | |
| 4450 | //触发更新updated 钩子函数 |
| 4451 | function callUpdatedHooks(queue) { |
| 4452 | var i = queue.length; |
| 4453 | while (i--) { |
| 4454 | var watcher = queue[i]; |
| 4455 | var vm = watcher.vm; //获取到虚拟dom |
| 4456 | if (vm._watcher === watcher && vm._isMounted) { //判断watcher与vm._watcher 相等 _isMounted已经更新触发了 mounted 钩子函数 |
| 4457 | //触发updated 更新数据钩子函数 |
| 4458 | callHook(vm, 'updated'); |
| 4459 | } |
| 4460 | } |
| 4461 | } |
| 4462 | |
| 4463 | /** |
| 4464 | * Queue a kept-alive component that was activated during patch. 对补丁期间激活的kept-alive组件进行队列。 |
no test coverage detected