]> source.dussan.org Git - jquery.git/commitdiff
Added jQuery.browser.version (see ticket #1101). Works in all browsers that we support.
authorJohn Resig <jeresig@gmail.com>
Sat, 28 Apr 2007 15:33:25 +0000 (15:33 +0000)
committerJohn Resig <jeresig@gmail.com>
Sat, 28 Apr 2007 15:33:25 +0000 (15:33 +0000)
src/jquery/jquery.js

index 7b7218540f20d90559a9c5708adcf7cab63e4926..edcaee20d3e7b0bcb99f30c952b8125b65847f78 100644 (file)
@@ -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),