From: Alexander Ebert Date: Sun, 12 Jul 2015 12:06:38 +0000 (+0200) Subject: Some minor optimizations X-Git-Tag: 3.0.0_Beta_1~2184 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6d2e38eef7b32efb276aff6ee4d4d02c2ccb0d05;p=GitHub%2FWoltLab%2FWCF.git Some minor optimizations --- 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();