Dom Event Listeners
Type: Class
How to get DomEventListeners?
JavaScript
import DomEventListeners from 'fontoxml-dom-utils/src/DomEventListeners.js'
Implements a wrapper around the browser's native event handling, which can register any number of events on any number of elements and remove these in one call.
This avoids code using events to have to manually keep references to bound functions, and is recommended for all event registration within the Fonto base packages.
Methods
add
Type: Function
Add an event listener.
Arguments
Returns
remove All
Type: Function
Remove all listeners registered through this object from the DOM.