don't access to gBrowser before it is initialized
This commit is contained in:
parent
6ad8ff635d
commit
f54f673b73
@ -28,7 +28,7 @@
|
||||
|
||||
<script type="application/javascript"><![CDATA[
|
||||
// for backward compatibility
|
||||
window.TreeStyleTabBrowserAutoHide = TreeStyleTabService.autoHideWindow;
|
||||
var TreeStyleTabBrowserAutoHide = TreeStyleTabService.autoHideWindow;
|
||||
|
||||
// preload images
|
||||
TreeStyleTabService.observe(
|
||||
|
@ -1426,6 +1426,10 @@ function AutoHideWindow(aWindow)
|
||||
this.init(aWindow);
|
||||
}
|
||||
AutoHideWindow.prototype = {
|
||||
get browser()
|
||||
{
|
||||
return this.treeStyleTab.browser;
|
||||
},
|
||||
|
||||
// mode
|
||||
|
||||
@ -1516,13 +1520,11 @@ AutoHideWindow.prototype = {
|
||||
this.window = aWindow;
|
||||
this.document = aWindow.document;
|
||||
this.treeStyleTab = aWindow.TreeStyleTabService;
|
||||
this.browser = this.treeStyleTab.browser;
|
||||
},
|
||||
|
||||
destroy : function AHB_destroy()
|
||||
{
|
||||
delete this.treeStyleTab;
|
||||
delete this.browser;
|
||||
delete this.document;
|
||||
delete this.window;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user