summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Schneider2011-10-11 09:55:57 +0000
committerChristian Schneider2011-10-11 09:55:57 +0000
commit7505e77cdfd6d546f1443240059fad43dafd2015 (patch)
tree9e986e6d0f2c5008579cb65bc8e58cf899605313
parente9224331a48b13433b8b0beeb856f0eb0242fa87 (diff)
downloaditools-7505e77cdfd6d546f1443240059fad43dafd2015.tar.gz
itools-7505e77cdfd6d546f1443240059fad43dafd2015.tar.bz2
itools-7505e77cdfd6d546f1443240059fad43dafd2015.zip
Check aborted flag because IE9 throws error c00c023f when accessing aborted request
-rwxr-xr-xitjs/http.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/itjs/http.js b/itjs/http.js
index 8615e98..faafe56 100755
--- a/itjs/http.js
+++ b/itjs/http.js
@@ -129,7 +129,7 @@ ready_state_changed: function()
{
var req = this.req; // Avoid race conditions
- if (req && (req.readyState == 4))
+ if (req && !req.aborted && req.readyState == 4) // Check aborted flag because IE9 throws error c00c023f when accessing aborted request
{
var data = null;
@@ -184,7 +184,7 @@ dataReady: function(data, callid)
stop: function()
{
- try { this.req.abort(); }
+ try { this.req.aborted = true; this.req.abort(); } // Set aborted flag as IE9 throws error c00c023f when accessing aborted request
catch (e) { }
this.unlink(this.callid);