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

Function chainInterceptors

lib/test/angular/1.6.7/angular.js:12235–12246  ·  view source on GitHub ↗
(promise, interceptors)

Source from the content-addressed store, hash-verified

12233
12234
12235 function chainInterceptors(promise, interceptors) {
12236 for (var i = 0, ii = interceptors.length; i < ii;) {
12237 var thenFn = interceptors[i++];
12238 var rejectFn = interceptors[i++];
12239
12240 promise = promise.then(thenFn, rejectFn);
12241 }
12242
12243 interceptors.length = 0;
12244
12245 return promise;
12246 }
12247
12248 function completeOutstandingRequest() {
12249 $browser.$$completeOutstandingRequest(noop);

Callers 1

$httpFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected