From 7cbc3f7bd49e593a32d5bd1a5a045e0e6afd6537 Mon Sep 17 00:00:00 2001 From: maxos Date: Tue, 7 Aug 2018 14:21:16 -0700 Subject: [PATCH] fixes #58 --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 22bc89b..b5e2f31 100644 --- a/index.js +++ b/index.js @@ -101,11 +101,11 @@ class TabGroup extends EventEmitter { } getTabs () { - return this.tabs; + return this.slice().tabs; } eachTab (fn) { - this.tabs.forEach(fn); + this.tabs.slice().forEach(fn); return this; }