Commit 2953d048 authored by jaubourg's avatar jaubourg

Makes sure statusText always defaults to "error".

parent d92dc290
...@@ -509,7 +509,7 @@ jQuery.extend({ ...@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment