Skip to content

Commit 1d220cd

Browse files
committed
Makes sure that status -1 (used when an internal error occured) will not tag jqXHR.readyState as complete (4).
1 parent e6a99fd commit 1d220cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ajax.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@ jQuery.extend({
503503
responseHeadersString = headers || "";
504504

505505
// Set readyState
506-
jqXHR.readyState = status ? 4 : 0;
506+
jqXHR.readyState = status > 0 ? 4 : 0;
507507

508508
var isSuccess,
509509
success,

0 commit comments

Comments
 (0)