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

Function chainInterceptors

lib/test/angular/1.7.0/angular.js:12386–12397  ·  view source on GitHub ↗
(promise, interceptors)

Source from the content-addressed store, hash-verified

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

Callers 2

$httpFunction · 0.70
addInterceptorFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected