* Adds an event listener that only fires once for the given event string. * * @param {string} event * @param {Function} handler * @param ctx * @returns
(event: string, handler: AnyHandler, ctx?: unknown)
| 40 | * @returns |
| 41 | */ |
| 42 | once(event: string, handler: AnyHandler, ctx?: unknown) { |
| 43 | return this.on(event, handler, ctx, true); |
| 44 | } |
| 45 | |
| 46 | /** |
| 47 | * Removes an event listener for the given event string. |