B2G/gecko/browser/components/downloads/src/DownloadsCommon.jsm
/**
   * Removes an object previously added using addView.
   *
   * @param aView
   *        DownloadsView object to be removed.
   */
Removes an object previously added using addView.
@param aView
DownloadsView object to be removed.
Removes an object previously added using addView . @param aView DownloadsView object to be removed .
function DD_removeView(aView)
  {
    let index = this._views.indexOf(aView);
    if (index != -1) {
      this._views.splice(index, 1);
    }
  }
function DD_removeView ( aView ) { let index = this . _views . indexOf ( aView ) ; if ( index != - 1 ) { this . _views . splice ( index , 1 ) ; } }
Removes an object previously added using addView.
Removes an object previously added using addView .