From 6d2e38eef7b32efb276aff6ee4d4d02c2ccb0d05 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Sun, 12 Jul 2015 14:06:38 +0200 Subject: [PATCH] Some minor optimizations --- wcfsetup/install/files/js/WoltLab/WCF/Ui/TabMenu.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/wcfsetup/install/files/js/WoltLab/WCF/Ui/TabMenu.js b/wcfsetup/install/files/js/WoltLab/WCF/Ui/TabMenu.js index ca63d04fc5..b511461551 100644 --- a/wcfsetup/install/files/js/WoltLab/WCF/Ui/TabMenu.js +++ b/wcfsetup/install/files/js/WoltLab/WCF/Ui/TabMenu.js @@ -29,16 +29,16 @@ define(['Dictionary', 'Dom/ChangeListener', 'Dom/Util', './TabMenu/Simple'], fun * Initializes available tab menus. */ _init: function() { - var tabMenus = document.querySelectorAll('.tabMenuContainer:not(.staticTabMenuContainer)'); + var container, containerId, returnValue, tabMenu, tabMenus = document.querySelectorAll('.tabMenuContainer:not(.staticTabMenuContainer)'); for (var i = 0, length = tabMenus.length; i < length; i++) { - var container = tabMenus[i]; - var containerId = DomUtil.identify(container); + container = tabMenus[i]; + containerId = DomUtil.identify(container); if (_tabMenus.has(containerId)) { continue; } - var tabMenu = new SimpleTabMenu(container), returnValue; + tabMenu = new SimpleTabMenu(container); if (tabMenu.validate()) { returnValue = tabMenu.init(); -- 2.20.1