From: Alexander Ebert Date: Wed, 29 Jun 2016 08:24:07 +0000 (+0200) Subject: Minor optimization X-Git-Tag: 3.0.0_Beta_1~1313 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8a32950e7599d79b69a5f996b31fcc6edbf61206;p=GitHub%2FWoltLab%2FWCF.git Minor optimization --- diff --git a/wcfsetup/install/files/js/WCF.User.js b/wcfsetup/install/files/js/WCF.User.js index fb424d7cd9..f1e184a4fd 100644 --- a/wcfsetup/install/files/js/WCF.User.js +++ b/wcfsetup/install/files/js/WCF.User.js @@ -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() {