B2G/gecko/browser/components/downloads/content/downloads.js
/**
   * Removes the view item associated with the specified data item.
   */
Removes the view item associated with the specified data item.
Removes the view item associated with the specified data item .
function DV_removeViewItem(aDataItem)
  {
    let element = this.getViewItem(aDataItem)._element;
    let previousSelectedIndex = this.richListBox.selectedIndex;
    this.richListBox.removeChild(element);
    this.richListBox.selectedIndex = Math.min(previousSelectedIndex,
                                              this.richListBox.itemCount - 1);
    delete this._viewItems[aDataItem.downloadId];
  }
function DV_removeViewItem ( aDataItem ) { let element = this . getViewItem ( aDataItem ) . _element ; let previousSelectedIndex = this . richListBox . selectedIndex ; this . richListBox . removeChild ( element ) ; this . richListBox . selectedIndex = Math . min ( previousSelectedIndex , this . richListBox . itemCount - 1 ) ; delete this . _viewItems [ aDataItem . downloadId ] ; }
Removes the view item associated with the specified data item.
Removes the view item associated with the specified data item .