I'm starting implementing Backbone in a web app.
The app has already some objects of its own, and also a Mediator (here called EventTools) for cross-object event communication. So for ex. an object subscribes like this:
EventTools.add({
"gt_pos_ready":function(coords){
//code;
}.bind(this),
});
And then some other object fires the event:
EventTools.fire("gt_pos_ready", args..);
Fine. But what if I want a view or other Backbone object to listen to EventTools firing some event?