B2G/gecko/browser/devtools/webconsole/webconsole.js
/**
   * The "cachedMessages" response handler.
   *
   * @private
   * @param function [aCallback]
   *        Optional function to invoke once the connection is established.
   * @param object aResponse
   *        The JSON response object received from the server.
   */
The "cachedMessages" response handler.
@private
@param function [aCallback]
Optional function to invoke once the connection is established.
@param object aResponse
The JSON response object received from the server.
The " cachedMessages " response handler . @private @param function [ aCallback ] Optional function to invoke once the connection is established . @param object aResponse The JSON response object received from the server .
function WCCP__onCachedMessages(aCallback, aResponse)
  {
    if (aResponse.error) {
      Cu.reportError("Web Console getCachedMessages error: " + aResponse.error +
                     " " + aResponse.message);
      return;
    }
    this.owner.displayCachedMessages(aResponse.messages);
    if (!this._hasNativeConsoleAPI) {
      this.owner.logWarningAboutReplacedAPI();
    }
    this.connected = true;
    aCallback && aCallback();
  }
function WCCP__onCachedMessages ( aCallback , aResponse ) { if ( aResponse . error ) { Cu . reportError ( "Web Console getCachedMessages error: " + aResponse . error + " " + aResponse . message ) ; return ; } this . owner . displayCachedMessages ( aResponse . messages ) ; if ( ! this . _hasNativeConsoleAPI ) { this . owner . logWarningAboutReplacedAPI ( ) ; } this . connected = true ; aCallback && aCallback ( ) ; }
The "cachedMessages" response handler.
The " cachedMessages " response handler .