From 437019a13898a3990b616e998f24326ff6228de3 Mon Sep 17 00:00:00 2001 From: Piro / SHIMODA Hiroshi Date: Sun, 23 Jan 2011 15:18:09 +0900 Subject: [PATCH] don't cache scroll box for the tab bar --- content/treestyletab/treestyletabbrowser.js | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/content/treestyletab/treestyletabbrowser.js b/content/treestyletab/treestyletabbrowser.js index 4d7c3f56..60e62167 100644 --- a/content/treestyletab/treestyletabbrowser.js +++ b/content/treestyletab/treestyletabbrowser.js @@ -54,16 +54,12 @@ TreeStyleTabBrowser.prototype = { get scrollBox() { - if (!this._scrollBox) { - this._scrollBox = ( // Tab Mix Plus - this.getTreePref('compatibility.TMP') && - document.getAnonymousElementByAttribute(this.mTabBrowser.mTabContainer, 'class', 'tabs-frame') - ) || - this.mTabBrowser.mTabContainer.mTabstrip; - } - return this._scrollBox; + return ( // Tab Mix Plus + this.getTreePref('compatibility.TMP') && + document.getAnonymousElementByAttribute(this.mTabBrowser.mTabContainer, 'class', 'tabs-frame') + ) || + this.mTabBrowser.mTabContainer.mTabstrip; }, - _scrollBox : null, get scrollBoxObject() { return (this.scrollBox.scrollBoxObject || this.scrollBox.boxObject) @@ -1657,7 +1653,6 @@ TreeStyleTabBrowser.prototype = { this.removePrefListener(this); delete this.mTabBrowser; - delete this._scrollBox; }, destroyTab : function TSTBrowser_destroyTab(aTab)