AbstractComponent
Provides some common implementation that useful to all that interact with RegisteringEventEmitters components, including:
- Maintaining a reference to an EventEmitter
- Wraps incoming EventEmitter in a RegisteringEventEmitter
- Ensures incoming EventEmitter is not null
- Maintains a collection of EventListener tokens for use with EventEmitter.off()
- Provides standard required method for initializing Event listeners
Inheritors
Constructors
Functions
Link copied to clipboard
Convenience method to add an EventListener for the given type using the EventEmitter.on() method.
Link copied to clipboard
Convenience method to add an EventListener for the given type using the EventEmitter.once() method.
Link copied to clipboard
Provides a reference to the EventEmitter with which this component was initialized
Link copied to clipboard
Removes the specified listener from the EventEmitter.
Link copied to clipboard
Removes all set listeners from the EventEmitter.