]> source.dussan.org Git - jquery.git/commitdiff
Fix bug #7018. 36/head
authorColin Snover <github.com@zetafleet.com>
Wed, 6 Oct 2010 08:03:28 +0000 (03:03 -0500)
committerColin Snover <github.com@zetafleet.com>
Wed, 6 Oct 2010 08:03:28 +0000 (03:03 -0500)
src/ajax.js

index e6154806808093afcd5e84df95a2ecde89b3ae23..08dc4431a7e9b9d40d624d9f24323183495b9781 100644 (file)
@@ -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 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 );
                                }