Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Added jQuery.browser.version (see ticket #1101). Works in all browser…
…s that we support.
  • Loading branch information
jeresig committed Apr 28, 2007
1 parent fba4225 commit 610149f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/jquery/jquery.js
Expand Up @@ -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),
Expand Down

0 comments on commit 610149f

Please sign in to comment.