B2G/gecko/browser/devtools/debugger/debugger-controller.js
/**
   * Convenience method, dispatching a custom event.
   *
   * @param string aType
   *        The name of the event.
   * @param string aDetail
   *        The data passed when initializing the event.
   */
Convenience method, dispatching a custom event.
@param string aType
The name of the event.
@param string aDetail
The data passed when initializing the event.
Convenience method dispatching a custom event . @param string aType The name of the event . @param string aDetail The data passed when initializing the event .
function DC_dispatchEvent(aType, aDetail) {
    let evt = document.createEvent("CustomEvent");
    evt.initCustomEvent(aType, true, false, aDetail);
    document.documentElement.dispatchEvent(evt);
  }
function DC_dispatchEvent ( aType , aDetail ) { let evt = document . createEvent ( "CustomEvent" ) ; evt . initCustomEvent ( aType , true , false , aDetail ) ; document . documentElement . dispatchEvent ( evt ) ; }
Convenience method, dispatching a custom event.
Convenience method dispatching a custom event .