()
| 916 | }; |
| 917 | |
| 918 | var close = function () { |
| 919 | currentState = CLOSED; |
| 920 | if (abortController != undefined) { |
| 921 | abortController.abort(); |
| 922 | abortController = undefined; |
| 923 | } |
| 924 | if (timeout !== 0) { |
| 925 | clearTimeout(timeout); |
| 926 | timeout = 0; |
| 927 | } |
| 928 | es.readyState = CLOSED; |
| 929 | }; |
| 930 | |
| 931 | var onTimeout = function () { |
| 932 | timeout = 0; |