B2G/gecko/browser/components/downloads/content/downloads.js
/**
   * Creates a new view item associated with the specified data item, and adds
   * it to the top or the bottom of the list.
   */
Creates a new view item associated with the specified data item, and adds
it to the top or the bottom of the list.
Creates a new view item associated with the specified data item and adds it to the top or the bottom of the list .
function DV_addViewItem(aDataItem, aNewest)
  {
    let element = document.createElement("richlistitem");
    let viewItem = new DownloadsViewItem(aDataItem, element);
    this._viewItems[aDataItem.downloadId] = viewItem;
    if (aNewest) {
      this.richListBox.insertBefore(element, this.richListBox.firstChild);
    } else {
      this.richListBox.appendChild(element);
    }
  }
function DV_addViewItem ( aDataItem , aNewest ) { let element = document . createElement ( "richlistitem" ) ; let viewItem = new DownloadsViewItem ( aDataItem , element ) ; this . _viewItems [ aDataItem . downloadId ] = viewItem ; if ( aNewest ) { this . richListBox . insertBefore ( element , this . richListBox . firstChild ) ; } else { this . richListBox . appendChild ( element ) ; } }
Creates a new view item associated with the specified data item, and adds
 it to the top or the bottom of the list.
Creates a new view item associated with the specified data item and adds it to the top or the bottom of the list .