Skip to content
Permalink
Browse files
Makes sure that status -1 (used when an internal error occured) will …
…not tag jqXHR.readyState as complete (4).
  • Loading branch information
jaubourg committed Jul 23, 2011
1 parent e6a99fd commit 1d220cdd55ec09cd46c594f154d11e7ba9d14b66
Showing 1 changed file with 1 addition and 1 deletion.
@@ -503,7 +503,7 @@ jQuery.extend({
responseHeadersString = headers || "";

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

var isSuccess,
success,

0 comments on commit 1d220cd

Please sign in to comment.