removeListener Method

Un-register a previously registered listener.

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

see BeEvent.raiseEvent, BeEvent.addListener

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

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

Defined in

Last Updated: 13 October, 2019