Fixed jQuery.browser
authorAlexander Ebert <ebert@woltlab.com>
Tue, 28 Oct 2014 21:47:22 +0000 (22:47 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Tue, 28 Oct 2014 21:47:22 +0000 (22:47 +0100)
wcfsetup/install/files/js/WCF.js

index 79a2943e5264d91a86d13a7b1a4850ce26cc4a9b..f5629920017a4d7c74e828e47bb004f19d301f24 100755 (executable)
@@ -151,7 +151,8 @@ function shuffle(array) {
                browser.safari = true;
        }
        
-       jQuery.browser = browser;
+       jQuery.browser = jQuery.browser || { };
+       jQuery.browser = $.extend(jQuery.browser, browser);
        jQuery.browser.touch = (!!('ontouchstart' in window) || (!!('msMaxTouchPoints' in window.navigator) && window.navigator.msMaxTouchPoints > 0));
        
        // detect smartphones