diff options
author | jeresig <jeresig@gmail.com> | 2010-01-12 16:50:59 -0500 |
---|---|---|
committer | jeresig <jeresig@gmail.com> | 2010-01-12 16:50:59 -0500 |
commit | 61983cbf176c599687c36ffbf4b64ae8697486a3 (patch) | |
tree | 5a9b23a70fefa13ff617b6abcc63f976fb596473 /src | |
parent | 6776920301308e1c7f251a67bbecbb6761a1f7b7 (diff) | |
download | jquery-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.js | 3 |
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; } |