B2G/gecko/browser/components/downloads/content/downloads.js
/**
   * Called when the number of items in the list changes.
   */
Called when the number of items in the list changes.
Called when the number of items in the list changes .
function DV_itemCountChanged()
  {
    let count = this._dataItems.length;
    let hiddenCount = count - this.kItemCountLimit;
    if (count > 0) {
      DownloadsPanel.panel.setAttribute("hasdownloads", "true");
    } else {
      DownloadsPanel.panel.removeAttribute("hasdownloads");
    }
    let s = DownloadsCommon.strings;
    this.downloadsHistory.label = (hiddenCount > 0)
                                  ? s.showMoreDownloads(hiddenCount)
                                  : s.showAllDownloads;
    this.downloadsHistory.accessKey = s.showDownloadsAccessKey;
  }
function DV_itemCountChanged ( ) { let count = this . _dataItems . length ; let hiddenCount = count - this . kItemCountLimit ; if ( count > 0 ) { DownloadsPanel . panel . setAttribute ( "hasdownloads" , "true" ) ; } else { DownloadsPanel . panel . removeAttribute ( "hasdownloads" ) ; } let s = DownloadsCommon . strings ; this . downloadsHistory . label = ( hiddenCount > 0 ) ? s . showMoreDownloads ( hiddenCount ) : s . showAllDownloads ; this . downloadsHistory . accessKey = s . showDownloadsAccessKey ; }
Called when the number of items in the list changes.
Called when the number of items in the list changes .