nytimes / backbone.trackit

Manage unsaved changes in a Backbone Model.
202 stars 33 forks source link

When using Stickit and Trackit with a select unsavedAttributes() doesn't seem to work. #17

Open dgsan opened 9 years ago

dgsan commented 9 years ago

When I create a select binding with Stickit, Trackit unsavedAttributes() don't seem to update. Not sure if Trackit is still supported/working or if I'm using it wrong, but a basic demo: http://jsfiddle.net/UJmGD/771/

scott-kennedy commented 9 years ago

You need to call model.startTracking() in order to start tracking changes so you'd probably want to call this.model.startTracking() in your initialize function.

This issue should be closed though perhaps a readme update is warranted to make this a bit more clear.