Fixed variable check
authorAlexander Ebert <ebert@woltlab.com>
Mon, 18 May 2015 16:14:22 +0000 (18:14 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Mon, 18 May 2015 16:14:22 +0000 (18:14 +0200)
wcfsetup/install/files/js/WoltLab/WCF/UI/FlexibleMenu.js

index 3c7ff955ad2a79f1bef2da43b41e9b9859f0db51..288a4396608cb0cbd67d3d79f3d4348fb45e0c58 100644 (file)
@@ -143,7 +143,7 @@ define(['Core', 'Dictionary', 'DOM/Traverse', 'DOM/Util', 'UI/SimpleDropdown'],
                        
                        if (hiddenItems.length) {
                                var dropdownMenu;
-                               if (dropdown === null) {
+                               if (dropdown === undefined) {
                                        dropdown = document.createElement('li');
                                        dropdown.className = 'dropdown jsFlexibleMenuDropdown';
                                        var icon = document.createElement('a');