Makes sure that status -1 (used when an internal error occured) will not tag jqXHR.readyState as complete (4).

This commit is contained in:
jaubourg 2011-07-23 02:17:46 +02:00
parent e6a99fdb0e
commit 1d220cdd55

View File

@ -503,7 +503,7 @@ jQuery.extend({
responseHeadersString = headers || ""; responseHeadersString = headers || "";
// Set readyState // Set readyState
jqXHR.readyState = status ? 4 : 0; jqXHR.readyState = status > 0 ? 4 : 0;
var isSuccess, var isSuccess,
success, success,