B2G/gecko/browser/components/downloads/content/indicator.js
/**
   * Ensures that there is an anchor available for the panel.
   *
   * @param aCallback
   *        Called when the anchor is available, passing the element where the
   *        panel should be anchored, or null if an anchor is not available (for
   *        example because both the tab bar and the navigation bar are hidden).
   */
Ensures that there is an anchor available for the panel.
@param aCallback
Called when the anchor is available, passing the element where the
panel should be anchored, or null if an anchor is not available (for
example because both the tab bar and the navigation bar are hidden).
Ensures that there is an anchor available for the panel . @param aCallback Called when the anchor is available passing the element where the panel should be anchored or null if an anchor is not available ( for example because both the tab bar and the navigation bar are hidden ) .
function DB_getAnchor(aCallback)
  {
    if (this._customizing) {
      aCallback(null);
      return;
    }
    function DB_GA_callback() {
      this._anchorRequested = true;
      aCallback(this._updatePositionInternal());
    }
    DownloadsOverlayLoader.ensureOverlayLoaded(this.kIndicatorOverlay,
                                               DB_GA_callback.bind(this));
  }
function DB_getAnchor ( aCallback ) { if ( this . _customizing ) { aCallback ( null ) ; return ; } function DB_GA_callback ( ) { this . _anchorRequested = true ; aCallback ( this . _updatePositionInternal ( ) ) ; } DownloadsOverlayLoader . ensureOverlayLoaded ( this . kIndicatorOverlay , DB_GA_callback . bind ( this ) ) ; }
Ensures that there is an anchor available for the panel.
Ensures that there is an anchor available for the panel .
// Do not allow anchoring the panel to the element while customizing.