From da2a6c2e54ece170b0e538bb4d9b806edecaf511 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Fri, 5 Nov 2021 11:47:14 +0100 Subject: [PATCH] Remove unused JS code --- assets/js/controllers/lang.js | 8 -------- 1 file changed, 8 deletions(-) diff --git a/assets/js/controllers/lang.js b/assets/js/controllers/lang.js index eed1fb8..02419e1 100644 --- a/assets/js/controllers/lang.js +++ b/assets/js/controllers/lang.js @@ -13,7 +13,6 @@ export function newLangController() { tabs: [], changeLanguage: function(index) { debug('changeLanguage', index); - let tab = this.tabs[index]; for (let i = 0; i < this.tabs.length; i++) { let isActive = i === index; this.tabs[i].active = isActive; @@ -25,13 +24,6 @@ export function newLangController() { debug('initLangs', tabs); tabs[0].active = true; this.tabs = tabs; - - return this.$nextTick(() => { - let first = this.tabs[0]; - // Hide all but the first. - for (let i = 1; i < this.tabs.length; i++) {} - debug('first', first); - }); } }; }