This repository has been archived by the owner on Sep 5, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
nextTick now keeps reference to correct scope.
Previously, `nextTick` would decide whether to run the functions based on the first `scope` argument passed during a given digest cycle. This could fail in multiple scenarios ... 1) The first `nextTick` call didn't supply a scope, but subsequent calls did. 2) Multiple components (with different scopes) registered callbacks during the same digest cycle. This could lead to callbacks being executed when they shouldn't be (if the first scope registered wasn't $$destroyed, this _this_ scope was), or callbacks not being executed when they should be (the first scope was $$destroyed, but this scope wasn't). I believe that this fixes #8358
- Loading branch information