Skip to content
Permalink
Browse files
The browser.version check was causing browsers with undetected userag…
…ents to die. This, at least, makes it fail gracefully.
  • Loading branch information
jeresig committed Jul 3, 2007
1 parent b9a8e65 commit b0cf71332a1cdfac2234a758bc350bcd1d723e9d
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/jquery/jquery.js
@@ -1811,7 +1811,7 @@ new function() {

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

0 comments on commit b0cf713

Please sign in to comment.