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:
6776920
)
Make sure oldAbort is only called if the xhr object still exists.
author
jeresig
<jeresig@gmail.com>
Tue, 12 Jan 2010 21:50:59 +0000
(16:50 -0500)
committer
jeresig
<jeresig@gmail.com>
Tue, 12 Jan 2010 21:50:59 +0000
(16:50 -0500)
src/ajax.js
patch
|
blob
|
history
diff --git
a/src/ajax.js
b/src/ajax.js
index
83e5bdc
..
02322ab
100644
(file)
--- 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;
}