(value: number)
| 147 | } |
| 148 | |
| 149 | private _setReadyState(value: number) { |
| 150 | if (this._readyState !== value) { |
| 151 | this._readyState = value; |
| 152 | this.emitEvent('readystatechange'); |
| 153 | } |
| 154 | |
| 155 | if (this._readyState === this.DONE) { |
| 156 | this.emitEvent('load'); |
| 157 | this.emitEvent('loadend'); |
| 158 | } |
| 159 | } |
| 160 | |
| 161 | private _setRequestError(eventName: string, error?: any) { |
| 162 | this._readyState = this.DONE; |
no test coverage detected