Output more debug log

This commit is contained in:
YUKI Hiroshi 2016-07-06 18:32:46 +09:00
parent be5fa81b86
commit 0e3acd003d

View File

@ -3280,10 +3280,12 @@ TreeStyleTabBrowser.prototype = inherit(TreeStyleTabWindow.prototype, {
let refTab;
let newIndex = -1;
if (hasStructure) {
log(' newIndex => -1 (has structure)');
}
else if (this.insertBefore &&
(refTab = this.getTabById(this.insertBefore))) {
newIndex = refTab._tPos;
log(' newIndex => '+newIndex+' (from "insertBefore")');
}
else if (
parent &&
@ -3294,6 +3296,7 @@ TreeStyleTabBrowser.prototype = inherit(TreeStyleTabWindow.prototype, {
子タブの最初の位置に挿入し続くタブは最初の開いたタブ
元々最初の子だったタブとの間に挿入していく */
newIndex = parent._tPos + 1;
log(' newIndex => '+newIndex+' (from "parent")');
if (refTab = this.getFirstChildTab(parent))
this.insertBefore = refTab.getAttribute(this.kID);
}