Skip to main content

detachEvent

Unsubscribes from the specified event.

Syntax​

expression.detachEvent(eventName);

expression - A variable that represents an Api class.

Parameters​

NameRequired/OptionalData typeDefaultDescription
eventNameRequiredstringThe event name.

Returns​

This method doesn't return any data.