import EventEmitter from '@mobilizing/library/js/Mobilizing/core/util/EventEmitter.js'
EventEmitter
EventEmitter is a helper class to handle event emission
Constructor Summary
Public Constructor | ||
public | constructor(params: Object) |
Method Summary
Public Constructors
public constructor(params: Object) source
Params:
Name | Type | Attribute | Description |
params | Object | Parameters object, given by the constructor. | |
params.scope | Mixed |
| The scope to use for callbacks, should usually be set to the class instance using the EventEmitter. Defaults to the EventEmitter instance if not specified |