removeListener Method

Un-register a previously registered listener.

removeListener(listener: T, scope?: any): boolean

@returns 'true' if the listener was removed; 'false' if the listener and scope are not registered with the event.

@see BeEvent.raiseEvent, BeEvent.addListener

Parameter Type Description
listener T The listener to be unregistered.
scope any The scope that was originally passed to addListener.

Returns - boolean

'true' if the listener was removed; 'false' if the listener and scope are not registered with the event.

Defined in

Last Updated: 25 April, 2024