I have problem with backbone collections. I trying to listen all events on collection:
this.collection.on('all', function(ev) {
console.log(ev);
});
And collection trigger event only when I create record like this:
this.collection.create({name: 'aloha'});
But not when I create model instance directly:
var room = new Room({name: 'hello'}); // this code not trigger any events on collection
room.save();
I am new to Backbone, but I think that second code should trigger event. Can somebody help me? Thanks!