documentcloud/backbone — Issue #780: Unexpected event triggering with same model in multiple collections
Author: mkalam-alami
Created: 2011-12-12 10:15:07+00:00
State: open

```javascript
MyModel = Backbone.Model.extend({ });

MyCollection = Backbone.Collection.extend({
model: MyModel
});

MyApp = Backbone.View.extend({
initialize: function() {
this.collection1 = new MyCollection();
this.collection2 = new MyCollection();
this.collection1.bind('add', this.add);
var myModel = new MyModel();
this.collection1.add(myModel);
this.collection2.add(myModel);
},
add: function() {
console.log("Model added!");
}
});

var app = new MyApp();
```

Output:

**Model added!
Model added!**

Not sure how the 2nd collection gets bound too, but the result is not what one would expect.