backbone.trackit icon indicating copy to clipboard operation
backbone.trackit copied to clipboard

add options to ignore properties

Open theoephraim opened this issue 9 years ago • 0 comments

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']});
}

theoephraim avatar May 13 '15 14:05 theoephraim