mirror of
https://github.com/jquery/jquery.git
synced 2026-01-24 23:58:12 -05:00
Make sure oldAbort is only called if the xhr object still exists.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user