aboutsummaryrefslogtreecommitdiffstats
path: root/src/ajax.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/ajax.js')
-rw-r--r--src/ajax.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ajax.js b/src/ajax.js
index 83e5bdcaf..02322ab39 100644
--- a/src/ajax.js
+++ b/src/ajax.js
@@ -455,9 +455,8 @@ jQuery.extend({
try {
var oldAbort = xhr.abort;
xhr.abort = function() {
- oldAbort.call( xhr );
-
if ( xhr ) {
+ oldAbort.call( xhr );
xhr.readyState = 0;
}