Commit d60b1978 authored by jeresig's avatar jeresig

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

ajaxStop was getting called too many times, separated some of the logic into the abort method itself.
parent c320e4f3
......@@ -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) { }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment