(reason)
| 13013 | } |
| 13014 | |
| 13015 | function timeoutRequest(reason) { |
| 13016 | abortedByTimeout = reason === 'timeout'; |
| 13017 | if (jsonpDone) { |
| 13018 | jsonpDone(); |
| 13019 | } |
| 13020 | if (xhr) { |
| 13021 | xhr.abort(); |
| 13022 | } |
| 13023 | } |
| 13024 | |
| 13025 | function completeRequest(callback, status, response, headersString, statusText, xhrStatus) { |
| 13026 | // cancel timeout and subsequent timeout promise resolution |