ajaxStop was getting called too many times, separated some of the logic into the abort method itself.

This commit is contained in:
jeresig 2010-01-12 10:47:00 -05:00
parent c320e4f3c2
commit d60b197810

View file

@ -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) { }