Make tab.setPosition not do anything if nothing is passed

This commit is contained in:
W Etheredge 2017-11-07 14:20:40 +00:00
parent 6c2ead8edd
commit ed9e63e92f

View file

@ -244,7 +244,7 @@ class Tab extends EventEmitter {
} }
setPosition (newPosition) { setPosition (newPosition) {
if (newPosition === 0) { if (newPosition === 0 || newPosition === undefined) {
return null; return null;
} }
let tabContainer = this.tabGroup.tabContainer; let tabContainer = this.tabGroup.tabContainer;