Get new position safely

This commit is contained in:
Piro / YUKI Hiroshi 2014-07-02 04:44:02 +09:00
parent f4fb6174d2
commit ca776a606f

View File

@ -4049,6 +4049,7 @@ TreeStyleTabBrowser.prototype = inherit(TreeStyleTabWindow.prototype, {
var newPos = -1;
if (parentOfNext) {
let descendants = this.getDescendantTabs(parentOfNext);
if (descendants.length)
newPos = descendants[descendants.length-1]._tPos;
}
else if (aNextTab) {