B2G/gecko/browser/devtools/debugger/debugger-view.js
/**
   * Disables a breakpoint.
   *
   * @param object aTarget
   *        An element representing a breakpoint.
   * @param function aCallback
   *        Optional function to invoke once the breakpoint is disabled.
   * @param boolean aNoCheckboxUpdate
   *        Pass true to not update the checkbox checked state.
   *        This is usually necessary when the checked state will be updated
   *        automatically (e.g: on a checkbox click).
   */
Disables a breakpoint.
@param object aTarget
An element representing a breakpoint.
@param function aCallback
Optional function to invoke once the breakpoint is disabled.
@param boolean aNoCheckboxUpdate
Pass true to not update the checkbox checked state.
This is usually necessary when the checked state will be updated
automatically .
Disables a breakpoint . @param object aTarget An element representing a breakpoint . @param function aCallback Optional function to invoke once the breakpoint is disabled . @param boolean aNoCheckboxUpdate Pass true to not update the checkbox checked state . This is usually necessary when the checked state will be updated automatically .
function DVB_disableBreakpoint(aTarget, aCallback, aNoCheckboxUpdate) {
    let { breakpointUrl: url, breakpointLine: line } = aTarget;
    let breakpoint = DebuggerController.Breakpoints.getBreakpoint(url, line)
    if (breakpoint) {
      if (!aNoCheckboxUpdate) {
        aTarget.getElementsByTagName("checkbox")[0].removeAttribute("checked");
      }
      DebuggerController.Breakpoints.
        removeBreakpoint(breakpoint, aCallback, false, true);
      return true;
    }
    return false;
  }
function DVB_disableBreakpoint ( aTarget , aCallback , aNoCheckboxUpdate ) { let { breakpointUrl : url , breakpointLine : line } = aTarget ; let breakpoint = DebuggerController . Breakpoints . getBreakpoint ( url , line ) if ( breakpoint ) { if ( ! aNoCheckboxUpdate ) { aTarget . getElementsByTagName ( "checkbox" ) [ 0 ] . removeAttribute ( "checked" ) ; } DebuggerController . Breakpoints . removeBreakpoint ( breakpoint , aCallback , false , true ) ; return true ; } return false ; }
Disables a breakpoint.
Disables a breakpoint .