Reputation: 51383
I have two collections that contain the same models. If one collection makes a change to a model listeners on the other collection do not get triggered? Any known reason why this would happen?
Upvotes: 0
Views: 1048
Reputation: 140210
You could see if the events are triggered by making this hook:
Backbone.Model.prototype.trigger = function(){
var old = Backbone.Model.prototype.trigger;
return function(e){
console.log( "model event triggered: "+e );
return old.apply( this, arguments );
};
}();
It should log whenever a backbone model internally triggers an event
Upvotes: 2