@shakrmedia/editor-sdk EventEmitter > off

EventEmitter.off() method#

Remove an event listener from the Event Emiiter

Signature:
off<K extends keyof T>(type: K, listener?: (this: this, event: T[K]) => void): this;

Parameters#

ParameterTypeDescription
typeKtype of an event listener to remove
listener(this: this, event: T[K]) => voidevent listener callback function to remove, if this is not specified, it will remove all listeners for passed type.
Returns:

this