From 2953d0481aacd38f1e2e1916ba6d18d2b10861d4 Mon Sep 17 00:00:00 2001 From: jaubourg Date: Wed, 9 Feb 2011 15:26:34 +0100 Subject: [PATCH] Makes sure statusText always defaults to "error". --- src/ajax.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;