From: Alexander Ebert Date: Fri, 16 Oct 2015 13:21:34 +0000 (+0200) Subject: Using `this` as return value for $.fn.focus on iOS X-Git-Tag: 2.1.8~13 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=97168f7553c5de0941a384db4f8697985ecb6913;p=GitHub%2FWoltLab%2FWCF.git Using `this` as return value for $.fn.focus on iOS --- diff --git a/wcfsetup/install/files/js/WCF.js b/wcfsetup/install/files/js/WCF.js index 3ea81487ab..e06760b6f8 100755 --- a/wcfsetup/install/files/js/WCF.js +++ b/wcfsetup/install/files/js/WCF.js @@ -185,7 +185,7 @@ window.shuffle = function(array) { // work-around for zoom bug on iOS when using .focus() if (jQuery.browser.iOS) { jQuery.fn.focus = function() { - return arguments[0]; + return this; }; } })(jQuery);