vega / polestar

Lightweight Tableau-style interface for visual analysis, built on Vega-lite.
http://vega.github.io/polestar
Other
367 stars 47 forks source link

Fixes #158 #159

Closed domoritz closed 9 years ago

domoritz commented 9 years ago

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.

kanitw commented 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.