diff options
author | jaubourg <j@ubourg.net> | 2011-07-23 02:17:46 +0200 |
---|---|---|
committer | jaubourg <j@ubourg.net> | 2011-07-23 02:17:46 +0200 |
commit | 1d220cdd55ec09cd46c594f154d11e7ba9d14b66 (patch) | |
tree | 89fef741e326d2650bc628a6e8f087952c7e5593 /src/ajax.js | |
parent | e6a99fdb0ee9e0fd7552d5de8bc4acbe982e98b7 (diff) | |
download | jquery-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.js | 2 |
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, |