B2G/gecko/browser/base/content/sanitizeDialog.js
/**
   * Helper function for the mousedown event.  Your mousedown listener should
   * call this.  Users can click on individual rows to make the selection
   * jump to them immediately.
   *
   * @param aEvent
   *        The observed mousedown event
   */
Helper function for the mousedown event.  Your mousedown listener should
call this.  Users can click on individual rows to make the selection
jump to them immediately.

@param aEvent
The observed mousedown event
Helper function for the mousedown event . Your mousedown listener should call this . Users can click on individual rows to make the selection jump to them immediately . @param aEvent The observed mousedown event
function CSTH_onmousedown(aEvent)
  {
    var tbo = this.tree.treeBoxObject;
    var clickedRow = tbo.getRowAt(aEvent.clientX, aEvent.clientY);
    if (clickedRow < 0 || clickedRow >= this.tree.view.rowCount)
      return;
    if (clickedRow < this.getGrippyRow())
      this.rangedSelect(clickedRow);
    else if (clickedRow > this.getGrippyRow())
      this.rangedSelect(clickedRow - 1);
  }
function CSTH_onmousedown ( aEvent ) { var tbo = this . tree . treeBoxObject ; var clickedRow = tbo . getRowAt ( aEvent . clientX , aEvent . clientY ) ; if ( clickedRow < 0 || clickedRow >= this . tree . view . rowCount ) return ; if ( clickedRow < this . getGrippyRow ( ) ) this . rangedSelect ( clickedRow ) ; else if ( clickedRow > this . getGrippyRow ( ) ) this . rangedSelect ( clickedRow - 1 ) ; }
Helper function for the mousedown event.
Helper function for the mousedown event .