MCPcopy Index your code
hub / github.com/angular-ui/ui-grid / completeOutstandingRequest

Function completeOutstandingRequest

lib/test/angular/1.6.7/angular.js:6417–6432  ·  view source on GitHub ↗

* Executes the `fn` function(supports currying) and decrements the `outstandingRequestCallbacks` * counter. If the counter reaches 0, all the `outstandingRequestCallbacks` are executed.

(fn)

Source from the content-addressed store, hash-verified

6415 * counter. If the counter reaches 0, all the `outstandingRequestCallbacks` are executed.
6416 */
6417 function completeOutstandingRequest(fn) {
6418 try {
6419 fn.apply(null, sliceArgs(arguments, 1));
6420 } finally {
6421 outstandingRequestCount--;
6422 if (outstandingRequestCount === 0) {
6423 while (outstandingRequestCallbacks.length) {
6424 try {
6425 outstandingRequestCallbacks.pop()();
6426 } catch (e) {
6427 $log.error(e);
6428 }
6429 }
6430 }
6431 }
6432 }
6433
6434 function getHash(url) {
6435 var index = url.indexOf('#');

Callers 1

BrowserFunction · 0.70

Calls 1

sliceArgsFunction · 0.70

Tested by

no test coverage detected