]> source.dussan.org Git - jquery.git/commitdiff
The browser.version check was causing browsers with undetected useragents to die...
authorJohn Resig <jeresig@gmail.com>
Tue, 3 Jul 2007 13:19:09 +0000 (13:19 +0000)
committerJohn Resig <jeresig@gmail.com>
Tue, 3 Jul 2007 13:19:09 +0000 (13:19 +0000)
src/jquery/jquery.js

index 1d0d281339910d9b832d65fef9a8438536429cda..e846e4dffee3375db243e42b353cf063aff696a8 100644 (file)
@@ -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),