Skip to content
Permalink
Browse files
Added some improvements to how the browser version is determined, bas…
…ed upon the suggestions of 'hobbit' in [1101].
  • Loading branch information
jeresig committed May 5, 2007
1 parent 003af8e commit 1501447
Showing 1 changed file with 1 addition and 1 deletion.
@@ -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),

0 comments on commit 1501447

Please sign in to comment.