Generally one implements notifications by listening for events on specific models but if one wishes to have a single global message interchange, it could be done as follows:
var pubsub = new Backbone.Model;
View1 = Backbone.View.extend({
initialize: function(){
pubsub.bind('custom event', callback);
}
// ...
});
View2 = Backbone.View.extend({
// ...
foo: function(){
pubsub.trigger('custom event', data);
}
});
or the reverse if one wished to publish events from models or collections.
Any particular reason you prefer making the pubsub object a new instance of a Backbone.Model object over cloning the Backbone.Events object? Not sure if there is performance reasons or syntax preference...