Closed domoritz closed 9 years ago
See #166 for correct fix.
Regarding your question, when you watch, angular reevaluate things when the value changes. This doesn’t require user interaction. If an interaction updates a value twice, it can trigger the watch twice.
Fixes #158
@kanitw should say whether this is the right way to fix this
This code is a bit of a mystery to me. I'd appreciate if you could make it a bit clearer.
I'm also not sure why you have to do all this copying. I think angular only reevaluates things after a user interaction so I wonder why we see glitches.