diff options
author | jaubourg <j@ubourg.net> | 2011-02-09 15:26:34 +0100 |
---|---|---|
committer | jaubourg <j@ubourg.net> | 2011-02-09 15:26:34 +0100 |
commit | 2953d0481aacd38f1e2e1916ba6d18d2b10861d4 (patch) | |
tree | d870901b465dc872df8c1d6e22291b1b97507cd6 /src/ajax.js | |
parent | d92dc2902c1e49642ce5148f7e082d880e77a2c5 (diff) | |
download | jquery-2953d0481aacd38f1e2e1916ba6d18d2b10861d4.tar.gz jquery-2953d0481aacd38f1e2e1916ba6d18d2b10861d4.zip |
Makes sure statusText always defaults to "error".
Diffstat (limited to 'src/ajax.js')
-rw-r--r-- | src/ajax.js | 2 |
1 files changed, 1 insertions, 1 deletions
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; |