B2G/gecko/browser/components/downloads/content/downloads.js
/**
   * Returns the view item associated with the provided data item for this view.
   *
   * @param aDataItem
   *        DownloadsDataItem object for which the view item is requested.
   *
   * @return Object that can be used to notify item status events.
   */
Returns the view item associated with the provided data item for this view.
@param aDataItem
DownloadsDataItem object for which the view item is requested.

@return Object that can be used to notify item status events.
Returns the view item associated with the provided data item for this view . @param aDataItem DownloadsDataItem object for which the view item is requested . @return Object that can be used to notify item status events .
function DV_getViewItem(aDataItem)
  {
    if (aDataItem.downloadId in this._viewItems) {
      return this._viewItems[aDataItem.downloadId];
    }
    return this._invisibleViewItem;
  }
function DV_getViewItem ( aDataItem ) { if ( aDataItem . downloadId in this . _viewItems ) { return this . _viewItems [ aDataItem . downloadId ] ; } return this . _invisibleViewItem ; }
Returns the view item associated with the provided data item for this view.
Returns the view item associated with the provided data item for this view .
// If the item is visible, just return it, otherwise return a mock object // that doesn't react to notifications.