]> source.dussan.org Git - jquery.git/commitdiff
Compatibility fixes in ajax: exceptions are no longer promoted to strings before...
authorjaubourg <j@ubourg.net>
Fri, 28 Jan 2011 16:08:46 +0000 (17:08 +0100)
committerjaubourg <j@ubourg.net>
Fri, 28 Jan 2011 16:08:46 +0000 (17:08 +0100)
src/ajax.js

index d8af9387451139393745df54c7b843c43e2cd557..383ba2b1ff8543f824cbb0ce9b3a966800527779 100644 (file)
@@ -472,7 +472,7 @@ jQuery.extend({
                                        } catch(e) {
                                                // We have a parsererror
                                                statusText = "parsererror";
-                                               error = "" + e;
+                                               error = e;
                                        }
                                }
                        } else {
@@ -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 );
@@ -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;