(reason)
| 13584 | } |
| 13585 | |
| 13586 | function timeoutRequest(reason) { |
| 13587 | abortedByTimeout = reason === 'timeout'; |
| 13588 | if (jsonpDone) { |
| 13589 | jsonpDone(); |
| 13590 | } |
| 13591 | if (xhr) { |
| 13592 | xhr.abort(); |
| 13593 | } |
| 13594 | } |
| 13595 | |
| 13596 | function completeRequest(callback, status, response, headersString, statusText, xhrStatus) { |
| 13597 | // cancel timeout and subsequent timeout promise resolution |