emit(name) {
        const args = Array.prototype.slice.call(arguments, 1);
        const listeners = this.registry[name];
        let count = 0;

        if (listeners) {
            listeners.forEach((listener) => {
                count += 1;
                listener.apply(null, args);
            });
        }
        return count > 0;
    }
/**
    Synchronously calls each listener registered with the specified event
    @method EventEmitter#emit
    @param {String} name - The name of the event
    @return {Boolean} - Returns `true` if the event had listeners, `false` otherwise
    **/
Synchronously calls each listener registered with the specified event
Synchronously calls each listener registered with the specified event
emit(name) {
        const args = Array.prototype.slice.call(arguments, 1);
        const listeners = this.registry[name];
        let count = 0;
        if (listeners) {
            listeners.forEach((listener) => {
                count += 1;
                listener.apply(null, args);
            });
        }
        return count > 0;
    }
emit ( name ) { const args = Array . prototype . slice . call ( arguments , 1 ) ; const listeners = this . registry [ name ] ; let count = 0 ; if ( listeners ) { listeners . forEach ( ( listener ) => { count += 1 ; listener . apply ( null , args ) ; } ) ; } return count > 0 ; }
Synchronously calls each listener registered with the specified event
Synchronously calls each listener registered with the specified event