Skip to content

Commit

Permalink
Compatibility fixes in ajax: exceptions are no longer promoted to str…
Browse files Browse the repository at this point in the history
…ings before being given to callbacks. Updated misleading comment in conversion code.
  • Loading branch information
jaubourg committed Jan 28, 2011
1 parent 1e4f3c0 commit bbd3f4f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ajax.js
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ jQuery.extend({
} catch(e) {
// We have a parsererror
statusText = "parsererror";
error = "" + e;
error = e;
}
}
} else {
Expand Down Expand Up @@ -662,7 +662,7 @@ jQuery.extend({
} catch (e) {
// Propagate exception as error if not done
if ( status < 2 ) {
done( -1, "" + e );
done( -1, e );
// Simply rethrow otherwise
} else {
jQuery.error( e );
Expand Down Expand Up @@ -849,7 +849,7 @@ function ajaxConvert( s, response ) {
conversion,
// Conversion function
conv,
// Conversion functions (when text is used in-between)
// Conversion functions (transitive conversion)
conv1,
conv2;

Expand Down

0 comments on commit bbd3f4f

Please sign in to comment.