Per Backbone documentation, passing silent
flag is rarely if ever a good idea. A better way is to have your event handler determine if the event needs to be accepted on. This rule applies to the following commands:
set
, unset
, reset
, clear
, remove
, add
, push
, unshift
, shift
, sort
, create
The following patterns are considered warnings:
Backbone.Model.extend({
intialize: function() {
this.set('test', 'test', {silent:true});
}
});
The following patterns are not warnings:
Backbone.Model.extend({
intialize: function() {
this.set('test', 'test');
}
});
If you know what you are doing and want your action to trigger no events you might need to disable this rule.