removeListener(name, listener) {
        const listeners = this.registry[name];
        if (listeners) {
            for (let i = 0, len = listeners.length; i < len; i += 1) {
                if (listeners[i] === listener) {
                    listeners.splice(i, 1);
                    return this;
                }
            }
        }
        return this;
    }
/**
    Removes the specified `listener` from the listener array for the event named `name`
    @method EventEmitter#removeListener
    @param {String} name - The name of the event
    @param {Function} listener - The callback function
    @return {EventEmitter} - Returns a reference to the `EventEmitter` so that calls can be chained
    **/
Removes the specified `listener` from the listener array for the event named `name`
Removes the specified ` listener ` from the listener array for the event named ` name `
removeListener(name, listener) {
        const listeners = this.registry[name];
        if (listeners) {
            for (let i = 0, len = listeners.length; i < len; i += 1) {
                if (listeners[i] === listener) {
                    listeners.splice(i, 1);
                    return this;
                }
            }
        }
        return this;
    }
removeListener ( name , listener ) { const listeners = this . registry [ name ] ; if ( listeners ) { for ( let i = 0 , len = listeners . length ; i < len ; i += 1 ) { if ( listeners [ i ] === listener ) { listeners . splice ( i , 1 ) ; return this ; } } } return this ; }
Removes the specified `listener` from the listener array for the event named `name`
Removes the specified ` listener ` from the listener array for the event named ` name `