B2G/gecko/browser/devtools/webconsole/AutocompletePopup.jsm
/**
   * Clear all the items from the autocomplete list.
   */
Clear all the items from the autocomplete list.
Clear all the items from the autocomplete list .
function AP_clearItems()
  {
    this.selectedIndex = -1;
    while (this._list.hasChildNodes()) {
      this._list.removeChild(this._list.firstChild);
    }
    this._list.width = "";
    this._list.height = "";
    this._panel.width = "";
    this._panel.height = "";
    this._panel.top = "";
    this._panel.left = "";
  }
function AP_clearItems ( ) { this . selectedIndex = - 1 ; while ( this . _list . hasChildNodes ( ) ) { this . _list . removeChild ( this . _list . firstChild ) ; } this . _list . width = "" ; this . _list . height = "" ; this . _panel . width = "" ; this . _panel . height = "" ; this . _panel . top = "" ; this . _panel . left = "" ; }
Clear all the items from the autocomplete list.
Clear all the items from the autocomplete list .
// Reset the selectedIndex to -1 before clearing the list // Reset the panel and list dimensions. New dimensions are calculated when a // new set of items is added to the autocomplete popup.