diff options
author | John Resig <jeresig@gmail.com> | 2010-11-09 12:40:55 -0500 |
---|---|---|
committer | John Resig <jeresig@gmail.com> | 2010-11-09 12:40:55 -0500 |
commit | aa743969763bde258fd16979c7205605ac6eae0f (patch) | |
tree | 0075ee377862b614bcad9abcd2c7c562a837a48d /src | |
parent | fb48ae8e6cca25fd29ef2b1eb23e9efa7b0eef7c (diff) | |
parent | e57b73a0ac6f8fd0cdbbe7d43f1c7e198f475337 (diff) | |
download | jquery-aa743969763bde258fd16979c7205605ac6eae0f.tar.gz jquery-aa743969763bde258fd16979c7205605ac6eae0f.zip |
Merge branch 'bug7422' of https://github.com/csnover/jquery into csnover-bug7422
Diffstat (limited to 'src')
-rw-r--r-- | src/ajax.js | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/ajax.js b/src/ajax.js index 9195bcc89..d10b93112 100644 --- a/src/ajax.js +++ b/src/ajax.js @@ -463,10 +463,11 @@ jQuery.extend({ try { var oldAbort = xhr.abort; xhr.abort = function() { - // xhr.abort in IE7 is not a native JS function - // and does not have a call property - if ( xhr && oldAbort.call ) { - oldAbort.call( xhr ); + if ( xhr ) { + // oldAbort has no call property in IE7 so + // just do it this way, which works in all + // browsers + Function.prototype.call.call( oldAbort, xhr ); } onreadystatechange( "abort" ); |