From 7505e77cdfd6d546f1443240059fad43dafd2015 Mon Sep 17 00:00:00 2001 From: Christian Schneider Date: Tue, 11 Oct 2011 09:55:57 +0000 Subject: Check aborted flag because IE9 throws error c00c023f when accessing aborted request --- itjs/http.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'itjs') 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); -- cgit v1.2.3