B2G/gecko/browser/components/downloads/content/downloads.js
/**
   * Closes the downloads panel and frees the internal resources related to the
   * downloads.  The downloads panel can be reopened later, even after this
   * function has been called.
   */
Closes the downloads panel and frees the internal resources related to the
downloads.  The downloads panel can be reopened later, even after this
function has been called.
Closes the downloads panel and frees the internal resources related to the downloads . The downloads panel can be reopened later even after this function has been called .
function DP_terminate()
  {
    if (this._state == this.kStateUninitialized) {
      return;
    }
    window.removeEventListener("unload", this.onWindowUnload, false);
    this.hidePanel();
    DownloadsViewController.terminate();
    DownloadsCommon.data.removeView(DownloadsView);
    this._state = this.kStateUninitialized;
  }
function DP_terminate ( ) { if ( this . _state == this . kStateUninitialized ) { return ; } window . removeEventListener ( "unload" , this . onWindowUnload , false ) ; this . hidePanel ( ) ; DownloadsViewController . terminate ( ) ; DownloadsCommon . data . removeView ( DownloadsView ) ; this . _state = this . kStateUninitialized ; }
Closes the downloads panel and frees the internal resources related to the
 downloads.
Closes the downloads panel and frees the internal resources related to the downloads .
// Ensure that the panel is closed before shutting down.