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