B2G/gecko/browser/devtools/webconsole/AutocompletePopup.jsm
/**
   * Select the previous item in the list.
   *
   * @return object
   *         The newly selected item object.
   */
Select the previous item in the list.
@return object
The newly selected item object.
Select the previous item in the list . @return object The newly selected item object .
function AP_selectPreviousItem()
  {
    if (this.selectedIndex > -1) {
      this.selectedIndex--;
    }
    else {
      this.selectedIndex = this.itemCount - 1;
    }
    return this.selectedItem;
  }
function AP_selectPreviousItem ( ) { if ( this . selectedIndex > - 1 ) { this . selectedIndex -- ; } else { this . selectedIndex = this . itemCount - 1 ; } return this . selectedItem ; }
Select the previous item in the list.
Select the previous item in the list .