(callback, status, response, headersString, statusText)
| 10527 | } |
| 10528 | |
| 10529 | function completeRequest(callback, status, response, headersString, statusText) { |
| 10530 | // cancel timeout and subsequent timeout promise resolution |
| 10531 | if (timeoutId !== undefined) { |
| 10532 | $browserDefer.cancel(timeoutId); |
| 10533 | } |
| 10534 | jsonpDone = xhr = null; |
| 10535 | |
| 10536 | callback(status, response, headersString, statusText); |
| 10537 | $browser.$$completeOutstandingRequest(noop); |
| 10538 | } |
| 10539 | }; |
| 10540 | |
| 10541 | function jsonpReq(url, callbackId, done) { |
no test coverage detected