(cb: Callback<EventType>)
| 21 | } |
| 22 | |
| 23 | public addHandler(cb: Callback<EventType>): () => void { |
| 24 | this._callbacks.push(cb); |
| 25 | return () => this.removeHandler(cb); |
| 26 | } |
| 27 | |
| 28 | public removeHandler(cb: Callback<EventType>): void { |
| 29 | const idx = this._callbacks.lastIndexOf(cb); |
no test coverage detected