(promise, interceptors)
| 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); |
no outgoing calls
no test coverage detected