B2G/gecko/browser/devtools/debugger/debugger-view.js
/**
   * Destroys a breakpoint context menu.
   *
   * @param object aBreakpoint
   *        An element representing a breakpoint.
   */
Destroys a breakpoint context menu.
@param object aBreakpoint
An element representing a breakpoint.
Destroys a breakpoint context menu . @param object aBreakpoint An element representing a breakpoint .
function DVB__destroyContextMenu(aBreakpoint) {
    if (!aBreakpoint.commandsetId || !aBreakpoint.menupopupId) {
      return;
    }
    let commandset = document.getElementById(aBreakpoint.commandsetId);
    let menupopup = document.getElementById(aBreakpoint.menupopupId);
    commandset.parentNode.removeChild(commandset);
    menupopup.parentNode.removeChild(menupopup);
  }
function DVB__destroyContextMenu ( aBreakpoint ) { if ( ! aBreakpoint . commandsetId || ! aBreakpoint . menupopupId ) { return ; } let commandset = document . getElementById ( aBreakpoint . commandsetId ) ; let menupopup = document . getElementById ( aBreakpoint . menupopupId ) ; commandset . parentNode . removeChild ( commandset ) ; menupopup . parentNode . removeChild ( menupopup ) ; }
Destroys a breakpoint context menu.
Destroys a breakpoint context menu .