mirror of
https://github.com/jquery/jquery.git
synced 2026-04-20 03:01:22 -04:00
Makes sure statusText always defaults to "error".
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user