From 8d82e02491b637f08d31f3fc393cb2bbcf39e44e Mon Sep 17 00:00:00 2001 From: SHIMODA Hiroshi Date: Fri, 19 Nov 2010 14:07:19 +0900 Subject: [PATCH] less access to oriental pref --- content/treestyletab/treestyletabbrowser.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/treestyletab/treestyletabbrowser.js b/content/treestyletab/treestyletabbrowser.js index f819304e..d787ebec 100644 --- a/content/treestyletab/treestyletabbrowser.js +++ b/content/treestyletab/treestyletabbrowser.js @@ -2739,6 +2739,7 @@ TreeStyleTabBrowser.prototype = { if (parent.getAttribute(this.kCHILDREN_RESTORING)) this.correctChildTabsOrderWithDelay(parent); + } else { this.deleteTabValue(tab, this.kPARENT); @@ -3809,8 +3810,7 @@ TreeStyleTabBrowser.prototype = { { this._treeViewEnabled = aValue ? true : false ; if (this._treeViewEnabled) { - let orient = this.isVertical ? 'vertical' : 'horizontal' ; - if (this.getTreePref('allowSubtreeCollapseExpand.'+orient)) + if (this.allowSubtreeCollapseExpand) this.setTabbrowserAttribute(this.kALLOW_COLLAPSE, true); this.updateTabsIndent(this.rootTabs, undefined, true); }