]> source.dussan.org Git - jquery.git/commitdiff
Makes sure statusText always defaults to "error".
authorjaubourg <j@ubourg.net>
Wed, 9 Feb 2011 14:26:34 +0000 (15:26 +0100)
committerjaubourg <j@ubourg.net>
Wed, 9 Feb 2011 14:26:34 +0000 (15:26 +0100)
src/ajax.js

index 76f983499e811e959f260ef479ca3711f66dd928..15ad6a85c519753fcadf356146fef73a2c351d72 100644 (file)
@@ -509,7 +509,7 @@ jQuery.extend({
                                // We extract error from statusText
                                // then normalize statusText and status for non-aborts
                                error = statusText;
-                               if( status ) {
+                               if( !statusText || status ) {
                                        statusText = "error";
                                        if ( status < 0 ) {
                                                status = 0;