From 1d220cdd55ec09cd46c594f154d11e7ba9d14b66 Mon Sep 17 00:00:00 2001 From: jaubourg Date: Sat, 23 Jul 2011 02:17:46 +0200 Subject: [PATCH] Makes sure that status -1 (used when an internal error occured) will not tag jqXHR.readyState as complete (4). --- src/ajax.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ajax.js b/src/ajax.js index 77659e118..7bbfaf906 100644 --- a/src/ajax.js +++ b/src/ajax.js @@ -503,7 +503,7 @@ jQuery.extend({ responseHeadersString = headers || ""; // Set readyState - jqXHR.readyState = status ? 4 : 0; + jqXHR.readyState = status > 0 ? 4 : 0; var isSuccess, success, -- 2.39.5