forked from appsforartists/angular.js
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Making watchCollection call the listener before clobbering oldValue
I took the naive approach suggested in angular#2621 of separating out the changeDetected logic from the rest of the watch to give the listener time to execute before oldCollection is overwritten. The logic should be identical to what's in the main repo, except no changes are made to the closed-over state until after listener is called back. Unfortunately, this doesn't appear to work, as the watchCollection tests are now all failing. I need to learn more about Karma so I can better debug this, and take more time to grok the logic of the function before I'd have a shot at fixing it.
- Loading branch information
1 parent
9814c75
commit f417df8
Showing
1 changed file
with
40 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters