X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;f=src%2Fajax.js;h=bd9fb455a86d4cbe35904596284a3035408e826b;hb=bb0b9b8958c22269767a151d86340d6eaf659bab;hp=95e40ecd28459fce8f7e93d18aab0dbc7542cbd1;hpb=da597bcf9014b1827e50c0e8f3b9268318574572;p=jquery.git diff --git a/src/ajax.js b/src/ajax.js index 95e40ec..bd9fb45 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 ); }