Added some improvements to how the browser version is determined, based upon the suggestions of 'hobbit' in [1101].
This commit is contained in:
parent
003af8e383
commit
1501447c70
1 changed files with 1 additions and 1 deletions
2
src/jquery/jquery.js
vendored
2
src/jquery/jquery.js
vendored
|
@ -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),
|
||||
|
|
Loading…
Reference in a new issue