From d8438842185ceb66fad235d8ddf90843bd199015 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=98=D0=BB=D1=8C=D1=8F=20=D0=9A=D0=BE=D0=BB=D0=B4=D1=83?= =?UTF-8?q?=D0=BD=D0=BE=D0=B2?= Date: Fri, 24 Nov 2017 21:57:00 +0200 Subject: [PATCH] Removed stack from removeTab method (issue #3). --- JS/RISE.JS | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/JS/RISE.JS b/JS/RISE.JS index 293b4eb..e336070 100644 --- a/JS/RISE.JS +++ b/JS/RISE.JS @@ -219,21 +219,14 @@ function Interface(parent, params) if (DOM.tabs[name].classList.contains(CSS.hidden)) { DOM.container.removeChildren(DOM.tabs[name]); + order.splice(order.indexOf(name), 1); delete DOM.tabs[name]; } else { - /*this.hideTab(name); - setTimeout((function() - { - DOM.container.removeChildren(DOM.tabs[name]); - delete DOM.tabs[name]; - - }).bind(this), properties.duration * 1000);*/ + console.warn("ERROR: you must open another tab before removing."); } - order.splice(order.indexOf(name), 1); - } else {