simpixelated / disruption

A game of startups.
0 stars 0 forks source link

chart series can get out of sync #21

Closed simpixelated closed 9 years ago

simpixelated commented 9 years ago

After taking an action, ended up with fewer user points on the chart than capital points. Probably because an action calls game.stop(), which clears the interval, which could happen between $scope.$watch triggers, causing one to get updated but not the other.

Might need to use $watchGroup, or $watch the entire startup_.attributes object.