[ReactNative] Fix XHR

This commit is contained in:
Christopher Chedeau 2015-06-06 16:44:58 -07:00
parent 1c9e957d22
commit 8ee9bfe944
1 changed files with 3 additions and 1 deletions

View File

@ -64,7 +64,9 @@ class XMLHttpRequest extends XMLHttpRequestBase {
_didCompleteResponse(requestId: number, error: string): void {
if (requestId === this._requestId) {
this.responseText = error;
if (error) {
this.responseText = error;
}
this._clearSubscriptions();
this._requestId = null;
this.setReadyState(this.DONE);