Get new position safely
This commit is contained in:
parent
f4fb6174d2
commit
ca776a606f
@ -4049,7 +4049,8 @@ TreeStyleTabBrowser.prototype = inherit(TreeStyleTabWindow.prototype, {
|
||||
var newPos = -1;
|
||||
if (parentOfNext) {
|
||||
let descendants = this.getDescendantTabs(parentOfNext);
|
||||
newPos = descendants[descendants.length-1]._tPos;
|
||||
if (descendants.length)
|
||||
newPos = descendants[descendants.length-1]._tPos;
|
||||
}
|
||||
else if (aNextTab) {
|
||||
newPos = aNextTab._tPos;
|
||||
|
Loading…
Reference in New Issue
Block a user