B2G/gecko/browser/components/downloads/content/downloads.js
/**
   * Hides the downloads panel, if visible, but keeps the internal state so that
   * the panel can be reopened quickly if required.
   */
Hides the downloads panel, if visible, but keeps the internal state so that
the panel can be reopened quickly if required.
Hides the downloads panel if visible but keeps the internal state so that the panel can be reopened quickly if required .
function DP_hidePanel()
  {
    if (!this.isPanelShowing) {
      return;
    }
    this.panel.hidePopup();
    this._state = this.kStateHidden;
  }
function DP_hidePanel ( ) { if ( ! this . isPanelShowing ) { return ; } this . panel . hidePopup ( ) ; this . _state = this . kStateHidden ; }
Hides the downloads panel, if visible, but keeps the internal state so that
 the panel can be reopened quickly if required.
Hides the downloads panel if visible but keeps the internal state so that the panel can be reopened quickly if required .
// Ensure that we allow the panel to be reopened.  Note that, if the popup // was open, then the onPopupHidden event handler has already updated the // current state, otherwise we must update the state ourselves.