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

Function chainInterceptors

test/angular/1.5/angular.js:11749–11760  ·  view source on GitHub ↗
(promise, interceptors)

Source from the content-addressed store, hash-verified

11747
11748
11749 function chainInterceptors(promise, interceptors) {
11750 for (var i = 0, ii = interceptors.length; i < ii;) {
11751 var thenFn = interceptors[i++];
11752 var rejectFn = interceptors[i++];
11753
11754 promise = promise.then(thenFn, rejectFn);
11755 }
11756
11757 interceptors.length = 0;
11758
11759 return promise;
11760 }
11761
11762 function executeHeaderFns(headers, config) {
11763 var headerContent, processedHeaders = {};

Callers 1

$httpFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected