Skip to content
Permalink
Browse files

Fix bug #7018.

  • Loading branch information...
csnover committed Oct 6, 2010
1 parent a2aefbf commit d2e64979bf641181443a8e6456f6292973a7fa9a
Showing with 4 additions and 2 deletions.
  1. +4 −2 src/ajax.js
@@ -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 );
}

0 comments on commit d2e6497

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