From 8a32950e7599d79b69a5f996b31fcc6edbf61206 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Wed, 29 Jun 2016 10:24:07 +0200 Subject: [PATCH] Minor optimization --- wcfsetup/install/files/js/WCF.User.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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() { -- 2.20.1