Skip to content

Commit

Permalink
Make sure that the xhr object still exists after the abort is called.
Browse files Browse the repository at this point in the history
  • Loading branch information
jeresig committed Jan 13, 2010
1 parent 1d8b3a9 commit b5f077a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/ajax.js
Expand Up @@ -457,7 +457,9 @@ jQuery.extend({
xhr.abort = function() {
if ( xhr ) {
oldAbort.call( xhr );
xhr.readyState = 0;
if ( xhr ) {
xhr.readyState = 0;
}
}

onreadystatechange();
Expand Down

0 comments on commit b5f077a

Please sign in to comment.