Fixed super-fast clicks sometimes causing an error
authorAlexander Ebert <ebert@woltlab.com>
Sun, 24 Jul 2016 16:53:25 +0000 (18:53 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Sun, 24 Jul 2016 16:53:25 +0000 (18:53 +0200)
wcfsetup/install/files/js/WCF.User.js

index e97f484cacaacc9cfbc3c130135b922ad0e21ee0..96071f286ad50b2022e2368731d630ccdc0e05c3 100644 (file)
@@ -189,7 +189,7 @@ WCF.User.Panel.Abstract = Class.extend({
                        if ($.browser.mobile) {
                                this.toggle();
                        }
-                       else if (this._dropdown.isOpen() && timerBlockClick === null) {
+                       else if ((this._dropdown && this._dropdown.isOpen()) && timerBlockClick === null) {
                                this.toggle();
                        }
                }).bind(this));