Commit d2e64979 authored by Colin Snover's avatar Colin Snover

Fix bug #7018.

parent a2aefbf3
...@@ -458,12 +458,14 @@ jQuery.extend({ ...@@ -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 // Opera doesn't fire onreadystatechange at all on abort
try { try {
var oldAbort = xhr.abort; var oldAbort = xhr.abort;
xhr.abort = function() { 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 ); oldAbort.call( xhr );
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment