MCPcopy Create free account
hub / github.com/angular-ui/ui-router / chainInterceptors

Function chainInterceptors

test/angular/1.6/angular.js:12384–12395  ·  view source on GitHub ↗
(promise, interceptors)

Source from the content-addressed store, hash-verified

12382
12383
12384 function chainInterceptors(promise, interceptors) {
12385 for (var i = 0, ii = interceptors.length; i < ii;) {
12386 var thenFn = interceptors[i++];
12387 var rejectFn = interceptors[i++];
12388
12389 promise = promise.then(thenFn, rejectFn);
12390 }
12391
12392 interceptors.length = 0;
12393
12394 return promise;
12395 }
12396
12397 function completeOutstandingRequest() {
12398 $browser.$$completeOutstandingRequest(noop);

Callers 1

$httpFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected