mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00: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:
parent
e6a99fdb0e
commit
1d220cdd55
@ -503,7 +503,7 @@ jQuery.extend({
|
||||
responseHeadersString = headers || "";
|
||||
|
||||
// Set readyState
|
||||
jqXHR.readyState = status ? 4 : 0;
|
||||
jqXHR.readyState = status > 0 ? 4 : 0;
|
||||
|
||||
var isSuccess,
|
||||
success,
|
||||
|
Loading…
Reference in New Issue
Block a user