Added some improvements to how the browser version is determined, based upon the suggestions of 'hobbit' in [1101].

This commit is contained in:
John Resig 2007-05-05 17:57:14 +00:00
parent 003af8e383
commit 1501447c70

View file

@ -1799,7 +1799,7 @@ new function() {
// Figure out what browser is being used
jQuery.browser = {
version: b.match(/.+[xiae][\/ ]([\d.]+)/)[1],
version: b.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)[1],
safari: /webkit/.test(b),
opera: /opera/.test(b),
msie: /msie/.test(b) && !/opera/.test(b),