Using `this` as return value for $.fn.focus on iOS
authorAlexander Ebert <ebert@woltlab.com>
Fri, 16 Oct 2015 13:21:34 +0000 (15:21 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Fri, 16 Oct 2015 13:21:45 +0000 (15:21 +0200)
wcfsetup/install/files/js/WCF.js

index 3ea81487ab9fc4f178e02e17357e244a65f416f4..e06760b6f82218843c60800e6d3fbec81d7df568 100755 (executable)
@@ -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);