Responding to David Tuitβs request to answer the first part of the question, you can configure the function to respond to a βmodifiedβ event, and then trigger a custom event if the property that you want to ignore has not been changed.
This logic will trigger a custom event: 'somePropertyOtherThanThePropIWantToExcludeChanged' if the property has not been changed. If several properties have been changed, including the one you want to ignore, then the custom event will NOT fire either:
model.bind('change', function(){ if( !model.hasChanged('propIWantToExclude') ){ model.trigger('somePropertyOtherThanThePropIWantToExcludeChanged'); } });
Chris dutrow
source share