don't cache scroll box for the tab bar
This commit is contained in:
parent
4578f832dd
commit
437019a138
@ -54,16 +54,12 @@ TreeStyleTabBrowser.prototype = {
|
|||||||
|
|
||||||
get scrollBox()
|
get scrollBox()
|
||||||
{
|
{
|
||||||
if (!this._scrollBox) {
|
return ( // Tab Mix Plus
|
||||||
this._scrollBox = ( // Tab Mix Plus
|
this.getTreePref('compatibility.TMP') &&
|
||||||
this.getTreePref('compatibility.TMP') &&
|
document.getAnonymousElementByAttribute(this.mTabBrowser.mTabContainer, 'class', 'tabs-frame')
|
||||||
document.getAnonymousElementByAttribute(this.mTabBrowser.mTabContainer, 'class', 'tabs-frame')
|
) ||
|
||||||
) ||
|
this.mTabBrowser.mTabContainer.mTabstrip;
|
||||||
this.mTabBrowser.mTabContainer.mTabstrip;
|
|
||||||
}
|
|
||||||
return this._scrollBox;
|
|
||||||
},
|
},
|
||||||
_scrollBox : null,
|
|
||||||
get scrollBoxObject()
|
get scrollBoxObject()
|
||||||
{
|
{
|
||||||
return (this.scrollBox.scrollBoxObject || this.scrollBox.boxObject)
|
return (this.scrollBox.scrollBoxObject || this.scrollBox.boxObject)
|
||||||
@ -1657,7 +1653,6 @@ TreeStyleTabBrowser.prototype = {
|
|||||||
this.removePrefListener(this);
|
this.removePrefListener(this);
|
||||||
|
|
||||||
delete this.mTabBrowser;
|
delete this.mTabBrowser;
|
||||||
delete this._scrollBox;
|
|
||||||
},
|
},
|
||||||
|
|
||||||
destroyTab : function TSTBrowser_destroyTab(aTab)
|
destroyTab : function TSTBrowser_destroyTab(aTab)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user