src/main/javascript/dom/floatz.dom.dom.js
/**
     * Remove event listener.
     *
     * @param element Element
     * @param {string|Event|CustomEvent} event Event name or event
     * @param handler Event handler
     * @param capture true for capture phase, false for bubbling phase
     */
Remove event listener.
@param element Element
@param {string|Event|CustomEvent} event Event name or event
@param handler Event handler
@param capture true for capture phase, false for bubbling phase
Remove event listener . @param element Element @param { string|Event|CustomEvent } event Event name or event @param handler Event handler @param capture true for capture phase false for bubbling phase
static removeEvent(element, event, handler, capture = false) {
        let eventName = event instanceof Event ? event.type : event;
        console.debug(LOG_PREFIX + "Removing event " + eventName);
        if (element.removeEventListener) {
            element.removeEventListener(eventName, handler, capture);
        } else if (element.detachEvent) {
            element.detachEvent(eventName, handler);
        } else {
            console.warn(LOG_PREFIX + "Event " + eventName + " can not be removed");
        }
    }
static removeEvent ( element , event , handler , capture = false ) { let eventName = event instanceof Event ? event . type : event ; console . debug ( LOG_PREFIX + "Removing event " + eventName ) ; if ( element . removeEventListener ) { element . removeEventListener ( eventName , handler , capture ) ; } else if ( element . detachEvent ) { element . detachEvent ( eventName , handler ) ; } else { console . warn ( LOG_PREFIX + "Event " + eventName + " can not be removed" ) ; } }
Remove event listener.
Remove event listener .