backbone.trackit
backbone.trackit copied to clipboard
add options to ignore properties
Allows you to set an array of properties to exclude from tracking.
This is useful if you can't always add trackit_silent
when setting things.
I'm using this to tell trackit to ignore changes on computed fields. You could also use this to tell trackit to ignore changes on nested models.
Usage:
...
initialize: function() {
this.startTracking({ignore: ['dontTrackMe', 'nestedModel', 'computedProperty']});
}