From: Colin Snover Date: Wed, 6 Oct 2010 08:03:28 +0000 (-0500) Subject: Fix bug #7018. X-Git-Tag: 1.4.3rc1~18^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fpull%2F36%2Fhead;p=jquery.git Fix bug #7018. --- diff --git a/src/ajax.js b/src/ajax.js index e61548068..08dc4431a 100644 --- a/src/ajax.js +++ b/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 ); }