diff options
author | jaubourg <j@ubourg.net> | 2011-01-25 16:08:19 +0100 |
---|---|---|
committer | jaubourg <j@ubourg.net> | 2011-01-25 16:08:19 +0100 |
commit | 5ca8f0617f5c94495380ff783452a52eab706d39 (patch) | |
tree | a369935e3c91af39c4e34949b25e001b0dd8f987 /src/ajax | |
parent | 8d050558d3dc2c0abd0bde4bc9d03bfb66974689 (diff) | |
download | jquery-5ca8f0617f5c94495380ff783452a52eab706d39.tar.gz jquery-5ca8f0617f5c94495380ff783452a52eab706d39.zip |
Reworks how values of parameters passed to error callbacks are determined. Fixes #8050.
Diffstat (limited to 'src/ajax')
-rw-r--r-- | src/ajax/xhr.js | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/ajax/xhr.js b/src/ajax/xhr.js index 5629dcd60..b82064239 100644 --- a/src/ajax/xhr.js +++ b/src/ajax/xhr.js @@ -108,12 +108,9 @@ if ( jQuery.support.ajax ) { } catch( _ ) {} // Do send the request - try { - xhr.send( ( s.hasContent && s.data ) || null ); - } catch( e ) { - complete( 0, "error", "" + e ); - return; - } + // This may raise an exception which is actually + // handled in jQuery.ajax (so no try/catch here) + xhr.send( ( s.hasContent && s.data ) || null ); // Listener callback = function( _, isAbort ) { |