Skip to content

Commit

Permalink
The browser.version check was causing browsers with undetected userag…
Browse files Browse the repository at this point in the history
…ents to die. This, at least, makes it fail gracefully.
  • Loading branch information
jeresig committed Jul 3, 2007
1 parent b9a8e65 commit b0cf713
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jquery/jquery.js
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit b0cf713

Please sign in to comment.