code: function dispatchEvent (event, data) {
      if (hasDOM()) {
        eventEmitter.dispatchEvent(new CustomEvent(event, data));
      } else if (hasEventEmitter()) {
        eventEmitter.emit(event, data);
      }
    }
docs: [dispatchEvent dispatches an event]
  @param  {string} event [event to dispatch]