抽象化

git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@5540 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
piro 2009-12-17 11:29:07 +00:00
parent 52efccab73
commit 4a9683634c

View File

@ -416,8 +416,7 @@ TreeStyleTabBrowserAutoHide.prototype = {
showHideInternal : function(aReason)
{
var viewer = this.rootContentViewer;
viewer.hide();
this.stopRendering();
var sv = this.mOwner;
var b = sv.mTabBrowser;
@ -447,10 +446,18 @@ TreeStyleTabBrowserAutoHide.prototype = {
aSelf.fireStateChangeEvent();
viewer.show();
aSelf.startRendering();
}, 0, this);
},
stopRendering : function()
{
this.rootContentViewer.hide();
},
startRendering : function()
{
this.rootContentViewer.show();
},
get rootContentViewer()
{
return window