From bf3631b79132f170b0b4572debfd8b5bb14b6ae0 Mon Sep 17 00:00:00 2001 From: Thomas Brouard Date: Fri, 17 Aug 2018 11:53:32 +0200 Subject: [PATCH] Fix TabGroup.getTabs() (fixes #66) --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; }