Make sure that the xhr object still exists after the abort is called.
This commit is contained in:
parent
1d8b3a9af2
commit
b5f077ae6a
|
@ -457,8 +457,10 @@ jQuery.extend({
|
||||||
xhr.abort = function() {
|
xhr.abort = function() {
|
||||||
if ( xhr ) {
|
if ( xhr ) {
|
||||||
oldAbort.call( xhr );
|
oldAbort.call( xhr );
|
||||||
|
if ( xhr ) {
|
||||||
xhr.readyState = 0;
|
xhr.readyState = 0;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
onreadystatechange();
|
onreadystatechange();
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue