diff --git a/src/ajax.js b/src/ajax.js index c6b8d0fa0..7760593d3 100644 --- a/src/ajax.js +++ b/src/ajax.js @@ -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 );