Commit 1d220cdd authored by jaubourg's avatar jaubourg

Makes sure that status -1 (used when an internal error occured) will not tag...

Makes sure that status -1 (used when an internal error occured) will not tag jqXHR.readyState as complete (4).
parent e6a99fdb
...@@ -503,7 +503,7 @@ jQuery.extend({ ...@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment