aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ajax.js4
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();