function globalEventHandler(event) {
    if (listeners[event.type]) {
      listeners[event.type].forEach(function(currentHandler) {
        currentHandler.call(this, event);
      }, this);
    }
  }
function globalEventHandler(event) {
    if (listeners[event.type]) {
      listeners[event.type].forEach(function(currentHandler) {
        currentHandler.call(this, event);
      }, this);
    }
  }
function globalEventHandler ( event ) { if ( listeners [ event . type ] ) { listeners [ event . type ] . forEach ( function ( currentHandler ) { currentHandler . call ( this , event ) ; } , this ) ; } }
Global event handler that dispatches the registered handlers in the
service.
@param {!Event} event Event object passed in by the browser
Global event handler that dispatches the registered handlers in the service .
Global event handler