Skip to content

add options to ignore properties#21

Open
theoephraim wants to merge 3 commits into
nytimes:masterfrom
breather:master
Open

add options to ignore properties#21
theoephraim wants to merge 3 commits into
nytimes:masterfrom
breather:master

Conversation

@theoephraim

Copy link
Copy Markdown

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant