aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorjeresig <jeresig@gmail.com>2010-01-12 16:50:59 -0500
committerjeresig <jeresig@gmail.com>2010-01-12 16:50:59 -0500
commit61983cbf176c599687c36ffbf4b64ae8697486a3 (patch)
tree5a9b23a70fefa13ff617b6abcc63f976fb596473 /src
parent6776920301308e1c7f251a67bbecbb6761a1f7b7 (diff)
downloadjquery-61983cbf176c599687c36ffbf4b64ae8697486a3.tar.gz
jquery-61983cbf176c599687c36ffbf4b64ae8697486a3.zip
Make sure oldAbort is only called if the xhr object still exists.
Diffstat (limited to 'src')
-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;
}