Skip to main content

Home > @jsplumbtoolkit/browser-ui > Surface > off

Surface.off() method

Unbind an event listener from the given DOM Element. This is a utility function that can be used on any element in the DOM, not just things rendered by the Toolkit.

Signature:

off(el: Document | Element | NodeListOf<Element>, event: string, handler: Function): void;

Parameters

ParameterTypeDescription
elDocument | Element | NodeListOf<Element>Element, or elements, from which to remove the event binding.
eventstringName of the event to unbind
handlerFunctionThe function to unbind

Returns:

void