Index: assets/js/XMLHttpRequest.jsm |
=================================================================== |
--- a/assets/js/XMLHttpRequest.jsm |
+++ b/assets/js/XMLHttpRequest.jsm |
@@ -3,6 +3,16 @@ |
{ |
this.headers = {}; |
this.responseHeaders = {}; |
+ this.progressEventListeners = []; |
+ this.loadendEventListeners = []; |
+ this.loadEventListeners = []; |
+ this.errorEventListeners = []; |
+ this.abortEventListeners = []; |
+ this.aborted = false; |
+ this.async = true; |
+ this.readyState = XMLHttpRequest.UNSENT; |
+ this.responseText = ""; |
+ this.status = 0; |
}; |
XMLHttpRequest.UNSENT = 0; |
@@ -143,17 +153,7 @@ |
var listener = listeners[i]; |
listener(); |
} |
- }, |
- progressEventListeners: [], |
- loadendEventListeners: [], |
- loadEventListeners: [], |
- errorEventListeners: [], |
- abortEventListeners: [], |
- aborted: false, |
- async: true, |
- readyState: XMLHttpRequest.UNSENT, |
- responseText: "", |
- status: 0 |
+ } |
}; |
XMLHttpRequest.prototype.channel = |