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 f52c4a3d5fb69f143d90f9a032e2a004c36ccae3
Showing with 1 addition and 1 deletion.
  1. +1 −1 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 );

0 comments on commit f52c4a3

Please sign in to comment.
You can’t perform that action at this time.