B2G/gecko/browser/devtools/webconsole/webconsole.js
/**
   * The click event handler for objects shown inline coming from the
   * window.console API.
   *
   * @private
   * @param nsIDOMNode aMessage
   *        The message element this handler corresponds to.
   * @param nsIDOMNode aAnchor
   *        The object inspector anchor element. This is the clickable element
   *        in the console.log message we display.
   * @param object aObjectActor
   *        The object actor grip.
   */
The click event handler for objects shown inline coming from the
window.console API.

@private
@param nsIDOMNode aMessage
The message element this handler corresponds to.
@param nsIDOMNode aAnchor
The object inspector anchor element. This is the clickable element
in the console.log message we display.
@param object aObjectActor
The object actor grip.
The click event handler for objects shown inline coming from the window . console API . @private @param nsIDOMNode aMessage The message element this handler corresponds to . @param nsIDOMNode aAnchor The object inspector anchor element . This is the clickable element in the console . log message we display . @param object aObjectActor The object actor grip .
function WCF__consoleLogClick(aMessage, aAnchor, aObjectActor)
  {
    if (aAnchor._panelOpen) {
      return;
    }
    let options = {
      title: aAnchor.textContent,
      anchor: aAnchor,
      data: {
        objectPropertiesProvider: this.objectPropertiesProvider.bind(this),
        releaseObject: this._releaseObject.bind(this),
      },
    };
    let propPanel;
    let onPopupHide = function _onPopupHide() {
      propPanel.panel.removeEventListener("popuphiding", onPopupHide, false);
      if (!aMessage.parentNode && aMessage._objectActors) {
        aMessage._objectActors.forEach(this._releaseObject, this);
        aMessage._objectActors = null;
      }
    }.bind(this);
    this.objectPropertiesProvider(aObjectActor.actor,
      function _onObjectProperties(aProperties) {
        options.data.objectProperties = aProperties;
        propPanel = this.jsterm.openPropertyPanel(options);
        propPanel.panel.setAttribute("hudId", this.hudId);
        propPanel.panel.addEventListener("popuphiding", onPopupHide, false);
      }.bind(this));
  }
function WCF__consoleLogClick ( aMessage , aAnchor , aObjectActor ) { if ( aAnchor . _panelOpen ) { return ; } let options = { title : aAnchor . textContent , anchor : aAnchor , data : { objectPropertiesProvider : this . objectPropertiesProvider . bind ( this ) , releaseObject : this . _releaseObject . bind ( this ) , } , } ; let propPanel ; let onPopupHide = function _onPopupHide ( ) { propPanel . panel . removeEventListener ( "popuphiding" , onPopupHide , false ) ; if ( ! aMessage . parentNode && aMessage . _objectActors ) { aMessage . _objectActors . forEach ( this . _releaseObject , this ) ; aMessage . _objectActors = null ; } } . bind ( this ) ; this . objectPropertiesProvider ( aObjectActor . actor , function _onObjectProperties ( aProperties ) { options . data . objectProperties = aProperties ; propPanel = this . jsterm . openPropertyPanel ( options ) ; propPanel . panel . setAttribute ( "hudId" , this . hudId ) ; propPanel . panel . addEventListener ( "popuphiding" , onPopupHide , false ) ; } . bind ( this ) ) ; }
The click event handler for objects shown inline coming from the
 window.console API.
The click event handler for objects shown inline coming from the window . console API .
// Data to inspect.