From 0e3acd003d694f53c339f18a4049300c3d64ca82 Mon Sep 17 00:00:00 2001 From: YUKI Hiroshi Date: Wed, 6 Jul 2016 18:32:46 +0900 Subject: [PATCH] Output more debug log --- modules/browser.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/browser.js b/modules/browser.js index 6c4b0882..5b99065a 100644 --- a/modules/browser.js +++ b/modules/browser.js @@ -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); }