Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4101096
eventBusSingleton.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
726 B
Referenced Files
None
Subscribers
None
eventBusSingleton.js
View Options
/**
* T156186: Please make judicious use of this singleton whose purpose is to
* allow disparate components the ability to subscribe to a set of events and
* react to those events.
*
* Prefer to use a more localized event bus when possible.
*
* Only import this in files at the edges. For example:
*
* Good: initialization scripts responsible for initializing classes such as
* mobile.init/init.js
* Bad: ImageOverlay.js or in any other component.
*
* By doing this, and using dependency injection of the event bus in the
* components themselves, it will make it easier to switch this event bus out
* for something more localized later on in our refactoring efforts.
*/
module
.
exports
=
new
OO
.
EventEmitter
();
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Aug 18, 16:47 (3 w, 4 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
48/72/940c2c15c784863f2f204baf68fe
Default Alt Text
eventBusSingleton.js (726 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment