Home > @rainway/web > EventEmitter > removeEventListener
EventEmitter.removeEventListener() method
Remove an event listener for a particular event type.
Signature:
removeEventListener<TName extends EventName<TEvents>>(eventName: TName, handler?: EventHandler<TEvents, TName>): void;
Parameters
Parameter | Type | Description |
---|---|---|
eventName | TName | The name of the event. |
handler | EventHandler<TEvents, TName> | (Optional) The event handler to remove. If none is provided, all handlers for this event name are removed. |
Returns:
void