From b0534b9fc7280ee0ca5b76c10df26b9f3b422907 Mon Sep 17 00:00:00 2001 From: W Etheredge Date: Thu, 16 Nov 2017 14:13:23 +0000 Subject: [PATCH] Change tabGroup.getTabById to tabGroup.getTab --- index.js | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/index.js b/index.js index 6093ef2..4870497 100644 --- a/index.js +++ b/index.js @@ -67,15 +67,7 @@ class TabGroup extends EventEmitter { return tab; } - getTab (id, idIsPosition) { - if (idIsPosition !== true) { - return this.getTabById(id); - } else { - return this.getTabByPosition(id); - } - } - - getTabById (id) { + getTab (id) { for (let i in this.tabs) { if (this.tabs[i].id === id) { return this.tabs[i];