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 1501447c7066bb7684dcfc34fb1dd3df512862de
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/jquery/jquery.js
@@ -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.