Minor optimization
authorAlexander Ebert <ebert@woltlab.com>
Wed, 29 Jun 2016 08:24:07 +0000 (10:24 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Wed, 29 Jun 2016 08:24:57 +0000 (10:24 +0200)
wcfsetup/install/files/js/WCF.User.js

index fb424d7cd958590c1b1d18b5dd753d607b1e1fdb..f1e184a4fd57743675a42f604a6e303a11d2e1b9 100644 (file)
@@ -188,9 +188,7 @@ WCF.User.Panel.Abstract = Class.extend({
                this._triggerElement.hover(
                        (function() {
                                if (this._dropdown === null || !this._dropdown.isOpen()) {
-                                       timer = window.setTimeout((function() {
-                                               this.toggle(undefined, true);
-                                       }).bind(this), 300); 
+                                       timer = window.setTimeout(this.toggle.bind(this, undefined, true), 300);
                                }
                        }).bind(this),
                        function() {