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

Function completeOutstandingRequest

test/angular/1.3/angular.js:4938–4953  ·  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

4936 * counter. If the counter reaches 0, all the `outstandingRequestCallbacks` are executed.
4937 */
4938 function completeOutstandingRequest(fn) {
4939 try {
4940 fn.apply(null, sliceArgs(arguments, 1));
4941 } finally {
4942 outstandingRequestCount--;
4943 if (outstandingRequestCount === 0) {
4944 while (outstandingRequestCallbacks.length) {
4945 try {
4946 outstandingRequestCallbacks.pop()();
4947 } catch (e) {
4948 $log.error(e);
4949 }
4950 }
4951 }
4952 }
4953 }
4954
4955 function getHash(url) {
4956 var index = url.indexOf('#');

Callers 1

BrowserFunction · 0.70

Calls 1

sliceArgsFunction · 0.70

Tested by

no test coverage detected