on(name, listener) {
        this.registry[name] = this.registry[name] || [];
        this.registry[name].push(listener);
        return this;
    }
/**
    Registers a listener on the emitter
    @method EventEmitter#on
    @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
    **/
Registers a listener on the emitter
Registers a listener on the emitter
on(name, listener) {
        this.registry[name] = this.registry[name] || [];
        this.registry[name].push(listener);
        return this;
    }
on ( name , listener ) { this . registry [ name ] = this . registry [ name ] || [ ] ; this . registry [ name ] . push ( listener ) ; return this ; }
Registers a listener on the emitter
Registers a listener on the emitter