Make sure oldAbort is only called if the xhr object still exists.
This commit is contained in:
parent
6776920301
commit
61983cbf17
1 changed files with 1 additions and 2 deletions
|
@ -455,9 +455,8 @@ jQuery.extend({
|
||||||
try {
|
try {
|
||||||
var oldAbort = xhr.abort;
|
var oldAbort = xhr.abort;
|
||||||
xhr.abort = function() {
|
xhr.abort = function() {
|
||||||
oldAbort.call( xhr );
|
|
||||||
|
|
||||||
if ( xhr ) {
|
if ( xhr ) {
|
||||||
|
oldAbort.call( xhr );
|
||||||
xhr.readyState = 0;
|
xhr.readyState = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue