From f1ef5f790c46303ccd025cd7d2216a25afa228b7 Mon Sep 17 00:00:00 2001 From: W Etheredge Date: Sun, 19 Nov 2017 03:58:07 +0000 Subject: [PATCH] Remove parameter check from tab.setPosition --- index.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/index.js b/index.js index 4870497..495ec6a 100644 --- a/index.js +++ b/index.js @@ -236,9 +236,6 @@ class Tab extends EventEmitter { } setPosition (newPosition) { - if (newPosition === 0 || newPosition === undefined) { - return null; - } let tabContainer = this.tabGroup.tabContainer; let tabs = tabContainer.children; let oldPosition = this.getPosition() - 1;