Fix TabGroup.getTabs() (fixes #66)

This commit is contained in:
Thomas Brouard 2018-08-17 11:53:32 +02:00
parent 5693897653
commit bf3631b791

View file

@ -101,11 +101,11 @@ class TabGroup extends EventEmitter {
}
getTabs () {
return this.slice().tabs;
return this.tabs.slice();
}
eachTab (fn) {
this.tabs.slice().forEach(fn);
this.getTabs().forEach(fn);
return this;
}