mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Added jQuery.browser.version (see ticket #1101). Works in all browsers that we support.
This commit is contained in:
parent
fba422541a
commit
610149fd19
1
src/jquery/jquery.js
vendored
1
src/jquery/jquery.js
vendored
@ -1807,6 +1807,7 @@ new function() {
|
|||||||
|
|
||||||
// Figure out what browser is being used
|
// Figure out what browser is being used
|
||||||
jQuery.browser = {
|
jQuery.browser = {
|
||||||
|
version: b.match(/.+[xiae][\/ ]([\d.]+)/)[1],
|
||||||
safari: /webkit/.test(b),
|
safari: /webkit/.test(b),
|
||||||
opera: /opera/.test(b),
|
opera: /opera/.test(b),
|
||||||
msie: /msie/.test(b) && !/opera/.test(b),
|
msie: /msie/.test(b) && !/opera/.test(b),
|
||||||
|
Loading…
Reference in New Issue
Block a user