(callback, status, response, headersString, statusText)
| 9795 | } |
| 9796 | |
| 9797 | function completeRequest(callback, status, response, headersString, statusText) { |
| 9798 | // cancel timeout and subsequent timeout promise resolution |
| 9799 | if (timeoutId !== undefined) { |
| 9800 | $browserDefer.cancel(timeoutId); |
| 9801 | } |
| 9802 | jsonpDone = xhr = null; |
| 9803 | |
| 9804 | callback(status, response, headersString, statusText); |
| 9805 | $browser.$$completeOutstandingRequest(noop); |
| 9806 | } |
| 9807 | }; |
| 9808 | |
| 9809 | function jsonpReq(url, callbackId, done) { |
no test coverage detected