git.asbjorn.biz
/
jquery.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1d8b3a9
)
Make sure that the xhr object still exists after the abort is called.
author
jeresig
<jeresig@gmail.com>
Wed, 13 Jan 2010 02:44:37 +0000
(21:44 -0500)
committer
jeresig
<jeresig@gmail.com>
Wed, 13 Jan 2010 02:44:37 +0000
(21:44 -0500)
src/ajax.js
patch
|
blob
|
history
diff --git
a/src/ajax.js
b/src/ajax.js
index
02322ab
..
8aa6a9a
100644
(file)
--- 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();