Skip to content

Commit

Permalink
Removed stack from removeTab method (issue #3).
Browse files Browse the repository at this point in the history
  • Loading branch information
gigafiga21 committed Nov 24, 2017
1 parent 2851fb4 commit d843884
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions JS/RISE.JS
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down

0 comments on commit d843884

Please sign in to comment.