mirror of
https://github.com/jquery/jquery.git
synced 2026-04-20 03:01:22 -04:00
Makes sure that status -1 (used when an internal error occured) will not tag jqXHR.readyState as complete (4).
This commit is contained in:
@@ -503,7 +503,7 @@ jQuery.extend({
|
||||
responseHeadersString = headers || "";
|
||||
|
||||
// Set readyState
|
||||
jqXHR.readyState = status ? 4 : 0;
|
||||
jqXHR.readyState = status > 0 ? 4 : 0;
|
||||
|
||||
var isSuccess,
|
||||
success,
|
||||
|
||||
Reference in New Issue
Block a user