Makes sure statusText always defaults to "error".

This commit is contained in:
jaubourg 2011-02-09 15:26:34 +01:00
parent d92dc2902c
commit 2953d0481a

View File

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