Fix TabGroup.getTabs() (fixes #66)
This commit is contained in:
parent
5693897653
commit
bf3631b791
1 changed files with 2 additions and 2 deletions
4
index.js
4
index.js
|
@ -101,11 +101,11 @@ class TabGroup extends EventEmitter {
|
||||||
}
|
}
|
||||||
|
|
||||||
getTabs () {
|
getTabs () {
|
||||||
return this.slice().tabs;
|
return this.tabs.slice();
|
||||||
}
|
}
|
||||||
|
|
||||||
eachTab (fn) {
|
eachTab (fn) {
|
||||||
this.tabs.slice().forEach(fn);
|
this.getTabs().forEach(fn);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue