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