                         --outstanding;                         if (outstanding === 0) {                             $.when(thisB.fetchFeatures(filter, blocksToFetch)).then(function(result) {                                 promise.resolve(result);                             });                         }                     }                 }             });         }