Documentation

Event.unbindAll

Event.unbindAll(target: any, event?: string)

The event deletes all handlers for specified event.

import {Event} from 'main.core';

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

Event.unbindAll(button, 'click');


© «Bitrix24», 2001-2022
Up