Documentation

Event.unbind

Event.unbind(target: Element, event: string, handler: (event: Event) => void, options?: listenerOptions)

The event deletes specified event handler. Third parameter must contain parameters used to add the handler. When handler was added without parameters, passing such parameters is not required.

import {Event} from 'main.core';

const button = document.querySelector('.ui-btn');

Event.unbind(button, 'click', eventHandler);


© «Bitrix24», 2001-2024