B2G/gecko/browser/devtools/webconsole/webconsole.js
/*
   * Handle to show/hide context menu item.
   *
   * @param nsIDOMEvent aEvent
   */
Handle to show/hide context menu item.
Handle to show / hide context menu item .
function CCM_build(aEvent)
  {
    let popup = aEvent.target;
    if (popup.id !== CONTEXTMENU_ID) {
      return;
    }
    let view = document.querySelector(".hud-output-node");
    let metadata = this.getSelectionMetadata(view);
    for (let i = 0, l = popup.childNodes.length; i < l; ++i) {
      let element = popup.childNodes[i];
      element.hidden = this.shouldHideMenuItem(element, metadata);
    }
  }
function CCM_build ( aEvent ) { let popup = aEvent . target ; if ( popup . id !== CONTEXTMENU_ID ) { return ; } let view = document . querySelector ( ".hud-output-node" ) ; let metadata = this . getSelectionMetadata ( view ) ; for ( let i = 0 , l = popup . childNodes . length ; i < l ; ++ i ) { let element = popup . childNodes [ i ] ; element . hidden = this . shouldHideMenuItem ( element , metadata ) ; } }
Handle to show/hide context menu item.
Handle to show / hide context menu item .