From: jaubourg Date: Wed, 9 Feb 2011 14:26:34 +0000 (+0100) Subject: Makes sure statusText always defaults to "error". X-Git-Tag: 1.5.1rc1~42 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=2953d0481aacd38f1e2e1916ba6d18d2b10861d4;p=jquery.git Makes sure statusText always defaults to "error". --- diff --git a/src/ajax.js b/src/ajax.js index 76f983499..15ad6a85c 100644 --- a/src/ajax.js +++ b/src/ajax.js @@ -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;