Reputation: 18805
I'm being a little lazy here but are these (below) all the default Backbone events. Also and am I correct in saying that the events bubble so a collection will receive any events triggered by a model.
Backbone Model events
change
error
sync
destroy
Collection events
add
remove
sync
reset
Many thanks
Lazy Nick
Upvotes: 6
Views: 2804
Reputation: 72878
From the Backbone website ( http://backbonejs.org/#Events-catalog ):
Here's a list of all of the built-in events that Backbone.js can fire. You're also free to trigger your own events on Models and Views as you see fit.
As for event bubbling, generally yes. When a model event is triggered it usually bubbles up through the collection as well. I'm not 100% sure if this is the case 100% of the time, but it usually is at least for the built in events.
Upvotes: 8
Reputation: 5121
Nowadays URL is different: http://backbonejs.org/#Events-catalog
Upvotes: 4