Skip to content
Permalink
Browse files

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 610149fd19c087e51ccd5975ba2c2e5c3bfe49a8
Showing with 1 addition and 0 deletions.
  1. +1 −0 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),

0 comments on commit 610149f

Please sign in to comment.
You can’t perform that action at this time.