Remove parameter check from tab.setPosition
This commit is contained in:
parent
b0534b9fc7
commit
f1ef5f790c
1 changed files with 0 additions and 3 deletions
3
index.js
3
index.js
|
@ -236,9 +236,6 @@ class Tab extends EventEmitter {
|
||||||
}
|
}
|
||||||
|
|
||||||
setPosition (newPosition) {
|
setPosition (newPosition) {
|
||||||
if (newPosition === 0 || newPosition === undefined) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
let tabContainer = this.tabGroup.tabContainer;
|
let tabContainer = this.tabGroup.tabContainer;
|
||||||
let tabs = tabContainer.children;
|
let tabs = tabContainer.children;
|
||||||
let oldPosition = this.getPosition() - 1;
|
let oldPosition = this.getPosition() - 1;
|
||||||
|
|
Loading…
Reference in a new issue