diff options
author | John Resig <jeresig@gmail.com> | 2008-12-21 21:22:44 +0000 |
---|---|---|
committer | John Resig <jeresig@gmail.com> | 2008-12-21 21:22:44 +0000 |
commit | b850ab2b8e65eadd25093c81bbc67a881daa0488 (patch) | |
tree | df385b3c4b165384f3a6c4ade60760b94db8cac4 /src/ajax.js | |
parent | 8ee1708ea93517f69979a6805480597b96b58da7 (diff) | |
download | jquery-b850ab2b8e65eadd25093c81bbc67a881daa0488.tar.gz jquery-b850ab2b8e65eadd25093c81bbc67a881daa0488.zip |
Added the new jQuery.support object and removed all uses of jQuery.browser from within jQuery itself (while simultaneously deprecating the use of jQuery.browser).
Diffstat (limited to 'src/ajax.js')
-rw-r--r-- | src/ajax.js | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/ajax.js b/src/ajax.js index d02d33135..6c8a22e8a 100644 --- a/src/ajax.js +++ b/src/ajax.js @@ -459,8 +459,7 @@ jQuery.extend({ try { // IE error sometimes returns 1223 when it should be 204 so treat it as success, see #1450 return !xhr.status && location.protocol == "file:" || - ( xhr.status >= 200 && xhr.status < 300 ) || xhr.status == 304 || xhr.status == 1223 || - jQuery.browser.safari && xhr.status === undefined; + ( xhr.status >= 200 && xhr.status < 300 ) || xhr.status == 304 || xhr.status == 1223; } catch(e){} return false; }, @@ -471,8 +470,7 @@ jQuery.extend({ var xhrRes = xhr.getResponseHeader("Last-Modified"); // Firefox always returns 200. check Last-Modified date - return xhr.status == 304 || xhrRes == jQuery.lastModified[url] || - jQuery.browser.safari && xhr.status === undefined; + return xhr.status == 304 || xhrRes == jQuery.lastModified[url]; } catch(e){} return false; }, |