Remove parameter check from tab.setPosition

This commit is contained in:
W Etheredge 2017-11-19 03:58:07 +00:00
parent b0534b9fc7
commit f1ef5f790c

View file

@ -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;