(eventName: string, ...args: Array<any>)
| 136 | } |
| 137 | |
| 138 | private emitEvent(eventName: string, ...args: Array<any>) { |
| 139 | if (isFunction(this['on' + eventName])) { |
| 140 | this['on' + eventName](...args); |
| 141 | } |
| 142 | |
| 143 | const handlers = this._listeners.get(eventName) || []; |
| 144 | handlers.forEach((handler) => { |
| 145 | handler(...args); |
| 146 | }); |
| 147 | } |
| 148 | |
| 149 | private _setReadyState(value: number) { |
| 150 | if (this._readyState !== value) { |
no test coverage detected