B2G/gecko/browser/devtools/webconsole/webconsole.js
/**
   * Make a link given an output element.
   *
   * @param nsIDOMNode aNode
   *        The message element you want to make a link for.
   * @param function aCallback
   *        The function you want invoked when the user clicks on the message
   *        element.
   */
Make a link given an output element.
@param nsIDOMNode aNode
The message element you want to make a link for.
@param function aCallback
The function you want invoked when the user clicks on the message
element.
Make a link given an output element . @param nsIDOMNode aNode The message element you want to make a link for . @param function aCallback The function you want invoked when the user clicks on the message element .
function WCF_makeOutputMessageLink(aNode, aCallback)
  {
    let linkNode;
    if (aNode.category === CATEGORY_NETWORK) {
      linkNode = aNode.querySelector(".webconsole-msg-link, .webconsole-msg-url");
    }
    else {
      linkNode = aNode.querySelector(".webconsole-msg-body");
      linkNode.classList.add("hud-clickable");
    }
    linkNode.setAttribute("aria-haspopup", "true");
    this._addMessageLinkCallback(aNode, aCallback);
  }
function WCF_makeOutputMessageLink ( aNode , aCallback ) { let linkNode ; if ( aNode . category === CATEGORY_NETWORK ) { linkNode = aNode . querySelector ( ".webconsole-msg-link, .webconsole-msg-url" ) ; } else { linkNode = aNode . querySelector ( ".webconsole-msg-body" ) ; linkNode . classList . add ( "hud-clickable" ) ; } linkNode . setAttribute ( "aria-haspopup" , "true" ) ; this . _addMessageLinkCallback ( aNode , aCallback ) ; }
Make a link given an output element.
Make a link given an output element .