Permalink
Browse files

Make sure that the xhr object still exists after the abort is called.

  • Loading branch information...
1 parent 1d8b3a9 commit b5f077ae6af6d644c5ae58ba9fd79a08dc58ba1e @jeresig jeresig committed Jan 13, 2010
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/ajax.js
View
@@ -457,7 +457,9 @@ jQuery.extend({
xhr.abort = function() {
if ( xhr ) {
oldAbort.call( xhr );
- xhr.readyState = 0;
+ if ( xhr ) {
+ xhr.readyState = 0;
+ }
}
onreadystatechange();

0 comments on commit b5f077a

Please sign in to comment.