( target: EventTarget, types: string, listener: EventListenerOrEventListenerObject, options?: AddEventListenerOptions, )
| 142 | * @param {AddEventListenerOptions} [options] The options specify characteristics about the event listener. |
| 143 | */ |
| 144 | export function on( |
| 145 | target: EventTarget, |
| 146 | types: string, |
| 147 | listener: EventListenerOrEventListenerObject, |
| 148 | options?: AddEventListenerOptions, |
| 149 | ): void { |
| 150 | types.trim().split(REGEXP_SPACES).forEach((type) => { |
| 151 | target.addEventListener(type, listener, options); |
| 152 | }); |
| 153 | } |
| 154 | |
| 155 | /** |
| 156 | * Add once event listener to the event target. |
no outgoing calls
no test coverage detected