git.asbjorn.biz
/
jquery.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fba4225
)
Added jQuery.browser.version (see ticket #1101). Works in all browsers that we support.
author
John Resig
<jeresig@gmail.com>
Sat, 28 Apr 2007 15:33:25 +0000
(15:33 +0000)
committer
John Resig
<jeresig@gmail.com>
Sat, 28 Apr 2007 15:33:25 +0000
(15:33 +0000)
src/jquery/jquery.js
patch
|
blob
|
history
diff --git
a/src/jquery/jquery.js
b/src/jquery/jquery.js
index
7b72185
..
edcaee2
100644
(file)
--- 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),