So I'm learning Backbone from scratch using the documentation.
Here is the snippet im trying to understand
var object = {};
_.extend(object, Backbone.Events);
object.on("alert", function(msg) {
alert("Triggered " + msg);
});
object.trigger("alert", "an event");
For example, to make a handy event dispatcher that can coordinate events among different areas of your application: var dispatcher = _.clone(Backbone.Events)
The code above works like a charm but I don't get the dispatcher part, what does it do? And how do I use it, already googled but the examples were too advanced for me =/