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:
c320e4f
)
ajaxStop was getting called too many times, separated some of the logic into the...
author
jeresig
<jeresig@gmail.com>
Tue, 12 Jan 2010 15:47:00 +0000
(10:47 -0500)
committer
jeresig
<jeresig@gmail.com>
Tue, 12 Jan 2010 15:47:00 +0000
(10:47 -0500)
src/ajax.js
patch
|
blob
|
history
diff --git
a/src/ajax.js
b/src/ajax.js
index
07e706c
..
e9b02fc
100644
(file)
--- a/
src/ajax.js
+++ b/
src/ajax.js
@@
-455,13
+455,16
@@
jQuery.extend({
var oldAbort = xhr.abort;
xhr.abort = function() {
oldAbort.call( xhr );
- if ( xhr ) {
- xhr.readyState = 0;
- }
+
if ( !requestDone ) {
complete();
}
- onreadystatechange();
+
+ if ( xhr ) {
+ xhr.onreadystatechange = null;
+ }
+
+ requestDone = true;
};
} catch(e) { }