B2G/gecko/browser/components/downloads/src/DownloadsCommon.jsm
/**
   * Adds an object to be notified when the available download data changes.
   * The specified object is initialized with the currently available downloads.
   *
   * @param aView
   *        DownloadsView object to be added.  This reference must be passed to
   *        removeView before termination.
   */
Adds an object to be notified when the available download data changes.
The specified object is initialized with the currently available downloads.

@param aView
DownloadsView object to be added.  This reference must be passed to
removeView before termination.
Adds an object to be notified when the available download data changes . The specified object is initialized with the currently available downloads . @param aView DownloadsView object to be added . This reference must be passed to removeView before termination .
function DD_addView(aView)
  {
    this._views.push(aView);
    this._updateView(aView);
  }
function DD_addView ( aView ) { this . _views . push ( aView ) ; this . _updateView ( aView ) ; }
Adds an object to be notified when the available download data changes.
Adds an object to be notified when the available download data changes .