B2G/gecko/browser/devtools/webconsole/webconsole.js
/**
   * Output a message node. This filters a node appropriately, then sends it to
   * the output, regrouping and pruning output as necessary.
   *
   * Note: this call is async - the given message node may not be displayed when
   * you call this method.
   *
   * @param integer aCategory
   *        The category of the message you want to output. See the CATEGORY_*
   *        constants.
   * @param function|nsIDOMElement aMethodOrNode
   *        The method that creates the message element to send to the output or
   *        the actual element. If a method is given it will be bound to the HUD
   *        object and the arguments will be |aArguments|.
   * @param array [aArguments]
   *        If a method is given to output the message element then the method
   *        will be invoked with the list of arguments given here.
   */
Output a message node. This filters a node appropriately, then sends it to
the output, regrouping and pruning output as necessary.

this call is async - the given message node may not be displayed when
you call this method.

@param integer aCategory
The category of the message you want to output. See the CATEGORY_
constants.
@param function|nsIDOMElement aMethodOrNode
The method that creates the message element to send to the output or
the actual element. If a method is given it will be bound to the HUD
object and the arguments will be |aArguments|.
@param array [aArguments]
If a method is given to output the message element then the method
will be invoked with the list of arguments given here.
Output a message node . This filters a node appropriately then sends it to the output regrouping and pruning output as necessary . this call is async - the given message node may not be displayed when you call this method . @param integer aCategory The category of the message you want to output . See the CATEGORY_ constants . @param function|nsIDOMElement aMethodOrNode The method that creates the message element to send to the output or the actual element . If a method is given it will be bound to the HUD object and the arguments will be |aArguments| . @param array [ aArguments ] If a method is given to output the message element then the method will be invoked with the list of arguments given here .
function WCF_outputMessage(aCategory, aMethodOrNode, aArguments)
  {
    if (!this._outputQueue.length) {
      this._lastOutputFlush = Date.now();
    }
    this._outputQueue.push([aCategory, aMethodOrNode, aArguments]);
    if (!this._outputTimerInitialized) {
      this._initOutputTimer();
    }
  }
function WCF_outputMessage ( aCategory , aMethodOrNode , aArguments ) { if ( ! this . _outputQueue . length ) { this . _lastOutputFlush = Date . now ( ) ; } this . _outputQueue . push ( [ aCategory , aMethodOrNode , aArguments ] ) ; if ( ! this . _outputTimerInitialized ) { this . _initOutputTimer ( ) ; } }
Output a message node.
Output a message node .
// If the queue is empty we consider that now was the last output flush. // This avoid an immediate output flush when the timer executes.