@ima/core
Version:
IMA.js framework for isomorphic javascript application
33 lines (32 loc) • 887 B
JavaScript
/**
* A Dispatcher is a utility that manager event listeners registered for events
* and allows distributing (firing) events to the listeners registered for the
* given event.
*
* The dispatcher provides a single-node event bus and is usually used to
* propagate events from controllers to UI components when modifying/passing
* the state is impractical for any reason.
*/ export class Dispatcher {
/**
* Deregisters all event listeners currently registered with this
* dispatcher.
*/ clear() {
return this;
}
listen(event, listener, scope) {
return this;
}
listenAll(listener, scope) {
return this;
}
unlisten(event, listener, scope) {
return this;
}
unlistenAll(listener, scope) {
return this;
}
fire(event, data) {
return this;
}
}
//# sourceMappingURL=Dispatcher.js.map