eventDispatcher.js
// delete an event from the input handler

delete an event from the input handler
delete an event from the input handler
deleteEvent(eventName) {
        let i = this.getEventIndex(eventName);
        if (i != -1) {
            this.name = this.name.filter( (e, indx) => indx != i );
            this._event = this._event.filter( (e, indx) => indx != i );
            this.dispatcher = this.dispatcher.filter( (e, indx) => indx != i );
            this.action = this.action.filter( (e, indx) => indx != i );
            this._length--;
            this._config = this._config.filter( (e, indx) => indx != i);
        } else {
            console.error(`custom event "${eventName}" does not exist`);
        }
    }
deleteEvent ( eventName ) { let i = this . getEventIndex ( eventName ) ; if ( i != - 1 ) { this . name = this . name . filter ( ( e , indx ) => indx != i ) ; this . _event = this . _event . filter ( ( e , indx ) => indx != i ) ; this . dispatcher = this . dispatcher . filter ( ( e , indx ) => indx != i ) ; this . action = this . action . filter ( ( e , indx ) => indx != i ) ; this . _length -- ; this . _config = this . _config . filter ( ( e , indx ) => indx != i ) ; } else { console . error ( ` ${ eventName } ` ) ; } }
delete an event from the input handler
delete an event from the input handler
//only for maintaining the config updated por exportation
