Commit 610149fd authored by John Resig's avatar John Resig

Added jQuery.browser.version (see ticket #1101). Works in all browsers that we support.

parent fba42254
...@@ -1807,6 +1807,7 @@ new function() { ...@@ -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),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment