aboutsummaryrefslogtreecommitdiffstats
path: root/src/ajax.js
diff options
context:
space:
mode:
authorjaubourg <j@ubourg.net>2011-07-23 02:17:46 +0200
committerjaubourg <j@ubourg.net>2011-07-23 02:17:46 +0200
commit1d220cdd55ec09cd46c594f154d11e7ba9d14b66 (patch)
tree89fef741e326d2650bc628a6e8f087952c7e5593 /src/ajax.js
parente6a99fdb0ee9e0fd7552d5de8bc4acbe982e98b7 (diff)
downloadjquery-1d220cdd55ec09cd46c594f154d11e7ba9d14b66.tar.gz
jquery-1d220cdd55ec09cd46c594f154d11e7ba9d14b66.zip
Makes sure that status -1 (used when an internal error occured) will not tag jqXHR.readyState as complete (4).
Diffstat (limited to 'src/ajax.js')
-rw-r--r--src/ajax.js2
1 files changed, 1 insertions, 1 deletions
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,