B2G/gecko/browser/devtools/tilt/TiltUtils.jsm
/**
   * Shows a modal alert message popup.
   *
   * @param {String} aTitle
   *                 the title of the popup
   * @param {String} aMessage
   *                 the message to be logged
   */
Shows a modal alert message popup.
@param {String} aTitle
the title of the popup
@param {String} aMessage
the message to be logged
Shows a modal alert message popup . @param { String } aTitle the title of the popup @param { String } aMessage the message to be logged
function TUO_alert(aTitle, aMessage)
  {
    if (this.suppressAlerts) {
      return;
    }
    if (!aMessage) {
      aMessage = aTitle;
      aTitle = "";
    }
    let prompt = Cc["@mozilla.org/embedcomp/prompt-service;1"]
      .getService(Ci.nsIPromptService);
    prompt.alert(null, aTitle, aMessage);
  }
function TUO_alert ( aTitle , aMessage ) { if ( this . suppressAlerts ) { return ; } if ( ! aMessage ) { aMessage = aTitle ; aTitle = "" ; } let prompt = Cc [ "@mozilla.org/embedcomp/prompt-service;1" ] . getService ( Ci . nsIPromptService ) ; prompt . alert ( null , aTitle , aMessage ) ; }
Shows a modal alert message popup.
Shows a modal alert message popup .
// get the prompt service // show the alert message