misoproject / dataset

JavaScript library that makes managing the data behind client-side visualisations easy
http://misoproject.com
GNU General Public License v2.0
1.18k stars 99 forks source link

Sync :: Investigate pulling synchronization into a mixin #29

Closed iros closed 12 years ago

iros commented 12 years ago

At the moment we are passing in { sync : true } to various method to allow one to subscribe to changes on it. This is currently somewhat inconsistant (you can do this on products but not on direct value extractions) and somewhat bulky when you don't want to keep any updates on your data (which unless you have a live data feed, you don't.)

Look into pulling out the sync behavior into a separate mixin that will enable binding to various dataset extraction methods.

iros commented 12 years ago

Set sync:true on dataset constructor to enable evented behavior.