diff options
author | jeresig <jeresig@gmail.com> | 2010-01-12 21:44:37 -0500 |
---|---|---|
committer | jeresig <jeresig@gmail.com> | 2010-01-12 21:44:37 -0500 |
commit | b5f077ae6af6d644c5ae58ba9fd79a08dc58ba1e (patch) | |
tree | 6f19e944b00a6f7e18661ca3f035967bedb7655b | |
parent | 1d8b3a9af22c6c34383b6653ecc1e44c48325b94 (diff) | |
download | jquery-b5f077ae6af6d644c5ae58ba9fd79a08dc58ba1e.tar.gz jquery-b5f077ae6af6d644c5ae58ba9fd79a08dc58ba1e.zip |
Make sure that the xhr object still exists after the abort is called.
-rw-r--r-- | src/ajax.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ajax.js b/src/ajax.js index 02322ab39..8aa6a9a12 100644 --- a/src/ajax.js +++ b/src/ajax.js @@ -457,7 +457,9 @@ jQuery.extend({ xhr.abort = function() { if ( xhr ) { oldAbort.call( xhr ); - xhr.readyState = 0; + if ( xhr ) { + xhr.readyState = 0; + } } onreadystatechange(); |