(promise, interceptors)
| 12953 | |
| 12954 | |
| 12955 | function chainInterceptors(promise, interceptors) { |
| 12956 | for (var i = 0, ii = interceptors.length; i < ii;) { |
| 12957 | var thenFn = interceptors[i++]; |
| 12958 | var rejectFn = interceptors[i++]; |
| 12959 | |
| 12960 | promise = promise.then(thenFn, rejectFn); |
| 12961 | } |
| 12962 | |
| 12963 | interceptors.length = 0; |
| 12964 | |
| 12965 | return promise; |
| 12966 | } |
| 12967 | |
| 12968 | function completeOutstandingRequest() { |
| 12969 | $browser.$$completeOutstandingRequest(noop, '$http'); |
no outgoing calls
no test coverage detected