抽象化
git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@5540 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
parent
52efccab73
commit
4a9683634c
@ -416,8 +416,7 @@ TreeStyleTabBrowserAutoHide.prototype = {
|
|||||||
|
|
||||||
showHideInternal : function(aReason)
|
showHideInternal : function(aReason)
|
||||||
{
|
{
|
||||||
var viewer = this.rootContentViewer;
|
this.stopRendering();
|
||||||
viewer.hide();
|
|
||||||
|
|
||||||
var sv = this.mOwner;
|
var sv = this.mOwner;
|
||||||
var b = sv.mTabBrowser;
|
var b = sv.mTabBrowser;
|
||||||
@ -447,11 +446,19 @@ TreeStyleTabBrowserAutoHide.prototype = {
|
|||||||
|
|
||||||
aSelf.fireStateChangeEvent();
|
aSelf.fireStateChangeEvent();
|
||||||
|
|
||||||
viewer.show();
|
aSelf.startRendering();
|
||||||
}, 0, this);
|
}, 0, this);
|
||||||
},
|
},
|
||||||
|
|
||||||
get rootContentViewer()
|
stopRendering : function()
|
||||||
|
{
|
||||||
|
this.rootContentViewer.hide();
|
||||||
|
},
|
||||||
|
startRendering : function()
|
||||||
|
{
|
||||||
|
this.rootContentViewer.show();
|
||||||
|
},
|
||||||
|
get rootContentViewer()
|
||||||
{
|
{
|
||||||
return window
|
return window
|
||||||
.QueryInterface(Components.interfaces.nsIInterfaceRequestor)
|
.QueryInterface(Components.interfaces.nsIInterfaceRequestor)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user