mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Fix bug #7018.
This commit is contained in:
parent
a2aefbf3b1
commit
d2e64979bf
@ -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 );
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user