( target: EventTarget, types: string, listener: EventListenerOrEventListenerObject, options?: EventListenerOptions, )
| 123 | * @param {EventListenerOptions} [options] The options specify characteristics about the event listener. |
| 124 | */ |
| 125 | export function off( |
| 126 | target: EventTarget, |
| 127 | types: string, |
| 128 | listener: EventListenerOrEventListenerObject, |
| 129 | options?: EventListenerOptions, |
| 130 | ): void { |
| 131 | types.trim().split(REGEXP_SPACES).forEach((type) => { |
| 132 | target.removeEventListener(type, listener, options); |
| 133 | }); |
| 134 | } |
| 135 | |
| 136 | /** |
| 137 | * Add event listener to the event target. |
no outgoing calls
no test coverage detected