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 () {
|
||||
return this.slice().tabs;
|
||||
return this.tabs.slice();
|
||||
}
|
||||
|
||||
eachTab (fn) {
|
||||
this.tabs.slice().forEach(fn);
|
||||
this.getTabs().forEach(fn);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue