aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJohn Resig <jeresig@gmail.com>2007-04-28 15:33:25 +0000
committerJohn Resig <jeresig@gmail.com>2007-04-28 15:33:25 +0000
commit610149fd19c087e51ccd5975ba2c2e5c3bfe49a8 (patch)
treed67fedc32c7c611bc6e4db6324742b8b665e0221 /src
parentfba422541a06a05ead698e1bffe4c7ec9a05ba22 (diff)
downloadjquery-610149fd19c087e51ccd5975ba2c2e5c3bfe49a8.tar.gz
jquery-610149fd19c087e51ccd5975ba2c2e5c3bfe49a8.zip
Added jQuery.browser.version (see ticket #1101). Works in all browsers that we support.
Diffstat (limited to 'src')
-rw-r--r--src/jquery/jquery.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/jquery/jquery.js b/src/jquery/jquery.js
index 7b7218540..edcaee20d 100644
--- a/src/jquery/jquery.js
+++ b/src/jquery/jquery.js
@@ -1807,6 +1807,7 @@ new function() {
// Figure out what browser is being used
jQuery.browser = {
+ version: b.match(/.+[xiae][\/ ]([\d.]+)/)[1],
safari: /webkit/.test(b),
opera: /opera/.test(b),
msie: /msie/.test(b) && !/opera/.test(b),