B2G/gecko/browser/components/downloads/content/downloads.js
/**
   * Re-processes all the currently pending requests, invoking the callbacks
   * and/or loading more overlays as needed.  In most cases, there will be a
   * single request for one overlay, that will be processed immediately.
   */
Re-processes all the currently pending requests, invoking the callbacks
and/or loading more overlays as needed.  In most cases, there will be a
single request for one overlay, that will be processed immediately.
Re - processes all the currently pending requests invoking the callbacks and / or loading more overlays as needed . In most cases there will be a single request for one overlay that will be processed immediately .
function DOL_processPendingRequests()
  {
    let currentLength = this._loadRequests.length;
    for (let i = 0; i < currentLength; i++) {
      let request = this._loadRequests.shift();
      this.ensureOverlayLoaded(request.overlay, request.callback);
    }
  }
function DOL_processPendingRequests ( ) { let currentLength = this . _loadRequests . length ; for ( let i = 0 ; i < currentLength ; i ++ ) { let request = this . _loadRequests . shift ( ) ; this . ensureOverlayLoaded ( request . overlay , request . callback ) ; } }
Re-processes all the currently pending requests, invoking the callbacks
 and/or loading more overlays as needed.
Re - processes all the currently pending requests invoking the callbacks and / or loading more overlays as needed .
// Re-process all the currently pending requests, yet allow more requests // to be appended at the end of the array if we're not ready for them. // We must call ensureOverlayLoaded again for each request, to check if // the associated callback can be invoked now, or if we must still wait // for the associated overlay to load.