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...
1 parent e6a99fd commit 1d220cdd55ec09cd46c594f154d11e7ba9d14b66 @jaubourg jaubourg committed Jul 23, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/ajax.js
View
@@ -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.