(reason)
| 13649 | } |
| 13650 | |
| 13651 | function timeoutRequest(reason) { |
| 13652 | abortedByTimeout = reason === 'timeout'; |
| 13653 | if (jsonpDone) { |
| 13654 | jsonpDone(); |
| 13655 | } |
| 13656 | if (xhr) { |
| 13657 | xhr.abort(); |
| 13658 | } |
| 13659 | } |
| 13660 | |
| 13661 | function completeRequest(callback, status, response, headersString, statusText, xhrStatus) { |
| 13662 | // cancel timeout and subsequent timeout promise resolution |