Make sure oldAbort is only called if the xhr object still exists.
This commit is contained in:
parent
6776920301
commit
61983cbf17
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue