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

Function chainInterceptors

lib/test/angular/1.8.0/angular.js:13020–13031  ·  view source on GitHub ↗
(promise, interceptors)

Source from the content-addressed store, hash-verified

13018
13019
13020 function chainInterceptors(promise, interceptors) {
13021 for (var i = 0, ii = interceptors.length; i < ii;) {
13022 var thenFn = interceptors[i++];
13023 var rejectFn = interceptors[i++];
13024
13025 promise = promise.then(thenFn, rejectFn);
13026 }
13027
13028 interceptors.length = 0;
13029
13030 return promise;
13031 }
13032
13033 function completeOutstandingRequest() {
13034 $browser.$$completeOutstandingRequest(noop, '$http');

Callers 2

$httpFunction · 0.70
addInterceptorFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected