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[
|
<script type="application/javascript"><![CDATA[
|
||||||
// for backward compatibility
|
// for backward compatibility
|
||||||
window.TreeStyleTabBrowserAutoHide = TreeStyleTabService.autoHideWindow;
|
var TreeStyleTabBrowserAutoHide = TreeStyleTabService.autoHideWindow;
|
||||||
|
|
||||||
// preload images
|
// preload images
|
||||||
TreeStyleTabService.observe(
|
TreeStyleTabService.observe(
|
||||||
|
@ -1426,6 +1426,10 @@ function AutoHideWindow(aWindow)
|
|||||||
this.init(aWindow);
|
this.init(aWindow);
|
||||||
}
|
}
|
||||||
AutoHideWindow.prototype = {
|
AutoHideWindow.prototype = {
|
||||||
|
get browser()
|
||||||
|
{
|
||||||
|
return this.treeStyleTab.browser;
|
||||||
|
},
|
||||||
|
|
||||||
// mode
|
// mode
|
||||||
|
|
||||||
@ -1516,13 +1520,11 @@ AutoHideWindow.prototype = {
|
|||||||
this.window = aWindow;
|
this.window = aWindow;
|
||||||
this.document = aWindow.document;
|
this.document = aWindow.document;
|
||||||
this.treeStyleTab = aWindow.TreeStyleTabService;
|
this.treeStyleTab = aWindow.TreeStyleTabService;
|
||||||
this.browser = this.treeStyleTab.browser;
|
|
||||||
},
|
},
|
||||||
|
|
||||||
destroy : function AHB_destroy()
|
destroy : function AHB_destroy()
|
||||||
{
|
{
|
||||||
delete this.treeStyleTab;
|
delete this.treeStyleTab;
|
||||||
delete this.browser;
|
|
||||||
delete this.document;
|
delete this.document;
|
||||||
delete this.window;
|
delete this.window;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user