Skip to content
Permalink
Browse files

jquery core: closes #3179. Fallback browser version for non supported…

… browsers.
  • Loading branch information
flesler committed Jul 23, 2008
1 parent fa13d60 commit 43c4b64f328c5d6f2642f6dcf33eb27c377c0491
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core.js
@@ -1221,7 +1221,7 @@ var userAgent = navigator.userAgent.toLowerCase();

// Figure out what browser is being used
jQuery.browser = {
version: (userAgent.match( /.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/ ) || [])[1],
version: (userAgent.match( /.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/ ) || [0,'0'])[1],
safari: /webkit/.test( userAgent ),
opera: /opera/.test( userAgent ),
msie: /msie/.test( userAgent ) && !/opera/.test( userAgent ),

0 comments on commit 43c4b64

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