Skip to content
Permalink
Browse files
If the XHR object no longer exists assume that the request was aborted.
  • Loading branch information
jeresig committed Aug 26, 2009
1 parent a64ad8b commit f52c4a3
Showing 1 changed file with 1 addition and 1 deletion.
@@ -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 );

0 comments on commit f52c4a3

Please sign in to comment.