Skip to content

Commit

Permalink
Merge branch 'bug7018' of http://github.com/csnover/jquery into csnov…
Browse files Browse the repository at this point in the history
…er-bug7018
  • Loading branch information
jeresig committed Oct 9, 2010
2 parents b0dcc17 + d2e6497 commit 9b655a1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/ajax.js
Original file line number Diff line number Diff line change
Expand Up @@ -458,12 +458,14 @@ jQuery.extend({
}
};

// Override the abort handler, if we can (IE doesn't allow it, but that's OK)
// Override the abort handler, if we can (IE 6 doesn't allow it, but that's OK)
// Opera doesn't fire onreadystatechange at all on abort
try {
var oldAbort = xhr.abort;
xhr.abort = function() {
if ( xhr ) {
// xhr.abort in IE7 is not a native JS function
// and does not have a call property
if ( xhr && oldAbort.call ) {
oldAbort.call( xhr );
}

Expand Down

0 comments on commit 9b655a1

Please sign in to comment.