EventBroker offers an interface to interact with Chaplin.mediator, meant to be used as a mixin.
event globablly, passing
arguments along for interested subscribers.
handler to the given
handler already subscribed to
event, it will be removed as a subscriber and added afresh. This function is like
Chaplin.mediator.subscribe except it cannot subscribe twice.
handler from the
event. This functions like
Unsubcribe from any subscriptions made through this objects
To give a class these pub/sub capabilities, you just need to make it extend
_.extend @prototype, EventBroker