MCPcopy
hub / github.com/angular-ui/ui-router / chainInterceptors

Function chainInterceptors

test/angular/1.7/angular.js:12955–12966  ·  view source on GitHub ↗
(promise, interceptors)

Source from the content-addressed store, hash-verified

12953
12954
12955 function chainInterceptors(promise, interceptors) {
12956 for (var i = 0, ii = interceptors.length; i < ii;) {
12957 var thenFn = interceptors[i++];
12958 var rejectFn = interceptors[i++];
12959
12960 promise = promise.then(thenFn, rejectFn);
12961 }
12962
12963 interceptors.length = 0;
12964
12965 return promise;
12966 }
12967
12968 function completeOutstandingRequest() {
12969 $browser.$$completeOutstandingRequest(noop, '$http');

Callers 2

$httpFunction · 0.70
addInterceptorFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected