mirror of
https://github.com/jquery/jquery.git
synced 2026-01-24 23:38:05 -05:00
If the XHR object no longer exists assume that the request was aborted.
This commit is contained in:
@@ -370,7 +370,7 @@ jQuery.extend({
|
||||
// Wait for a response to come back
|
||||
var onreadystatechange = function(isTimeout){
|
||||
// The request was aborted, clear the interval and decrement jQuery.active
|
||||
if ( xhr.readyState === 0 ) {
|
||||
if ( !xhr || xhr.readyState === 0 ) {
|
||||
if ( ival ) {
|
||||
// clear poll interval
|
||||
clearInterval( ival );
|
||||
|
||||
Reference in New Issue
Block a user