Change tabGroup.getTabById to tabGroup.getTab

This commit is contained in:
W Etheredge 2017-11-16 14:13:23 +00:00
parent ed9e63e92f
commit b0534b9fc7

View file

@ -67,15 +67,7 @@ class TabGroup extends EventEmitter {
return tab; return tab;
} }
getTab (id, idIsPosition) { getTab (id) {
if (idIsPosition !== true) {
return this.getTabById(id);
} else {
return this.getTabByPosition(id);
}
}
getTabById (id) {
for (let i in this.tabs) { for (let i in this.tabs) {
if (this.tabs[i].id === id) { if (this.tabs[i].id === id) {
return this.tabs[i]; return this.tabs[i];