From ffd7c26150602cd13169aa6b5ab63722c0030e44 Mon Sep 17 00:00:00 2001 From: YUKI Hiroshi Date: Wed, 18 Nov 2015 19:15:26 +0900 Subject: [PATCH] Add a comment to describe its design around promoting of children --- modules/browser.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/browser.js b/modules/browser.js index afd09487..cd8c4507 100644 --- a/modules/browser.js +++ b/modules/browser.js @@ -5621,6 +5621,8 @@ TreeStyleTabBrowser.prototype = inherit(TreeStyleTabWindow.prototype, { (!parentTab && closeParentBehavior == this.kCLOSE_PARENT_BEHAVIOR_PROMOTE_ALL_CHILDREN) ? closeRootBehavior : closeParentBehavior ; + // Promote all children to upper level, if this is the last child of the parent. + // This is similar to "taking by representation". if (behavior == this.kCLOSE_PARENT_BEHAVIOR_PROMOTE_FIRST_CHILD && parentTab && this.getChildTabs(parentTab).length == 1)