diff --git a/index.js b/index.js index b5e2f31..7a81246 100644 --- a/index.js +++ b/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; }