Skip to content

Commit

Permalink
Makes sure that status -1 (used when an internal error occured) will …
Browse files Browse the repository at this point in the history
…not tag jqXHR.readyState as complete (4).
  • Loading branch information
jaubourg committed Jul 23, 2011
1 parent e6a99fd commit 1d220cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ajax.js
Expand Up @@ -503,7 +503,7 @@ jQuery.extend({
responseHeadersString = headers || "";

// Set readyState
jqXHR.readyState = status ? 4 : 0;
jqXHR.readyState = status > 0 ? 4 : 0;

var isSuccess,
success,
Expand Down

0 comments on commit 1d220cd

Please sign in to comment.