Backbone allows you to mix your own custom events to bind and trigger.
Example in a require module.
Somewhere else you can include this and start creating your own triggers.
When myevent is triggered it will pass in ‘Lets do some nice stuff’ to myfunction and output it to the console.
Backbone allows you to pass single and multiple events.
Trigger a single event.
Trigger multiple events.
You can pass multiple arguments to a single event.
You can pass multiple arguments to multiple events.
There is a catchall where you can listen to all events.
You can also turn off events.
Delegate events
Backbone Views allow you to bind events easily,
Behind the scenes is delegateEvents. So maybe you wanted to make two different types of events, you could do so like this;