re-split initialization methods

This commit is contained in:
SHIMODA Hiroshi 2011-05-26 10:47:28 +09:00
parent 1e6daae6fb
commit 91ee4592dc
3 changed files with 14 additions and 4 deletions

View File

@ -313,7 +313,7 @@ TreeStyleTabWindowHelper.overrideExtensionsPreInit = function TSTWH_overrideExte
}
};
TreeStyleTabWindowHelper.overrideExtensionsOnInitBefore = function TSTWH_overrideExtensionsOnInitBefore() {
TreeStyleTabWindowHelper.overrideExtensionsBeforeBrowserInit = function TSTWH_overrideExtensionsBeforeBrowserInit() {
var sv = this.service;
// Tab Mix Plus
@ -396,6 +396,10 @@ TreeStyleTabWindowHelper.overrideExtensionsOnInitBefore = function TSTWH_overrid
);
}
}
};
TreeStyleTabWindowHelper.overrideExtensionsAfterBrowserInit = function TSTWH_overrideExtensionsAfterBrowserInit() {
var sv = this.service;
// Selection Links
// https://addons.mozilla.org/firefox/addon/8644

View File

@ -59,11 +59,16 @@ var TreeStyleTabWindowHelper = {
this.overrideExtensionsPreInit(); // hacks.js
},
init : function TSTWH_init()
onBeforeBrowserInit : function TSTWH_onBeforeBrowserInit()
{
this.overrideExtensionsOnInitBefore(); // hacks.js
this.overrideExtensionsBeforeBrowserInit(); // hacks.js
this.overrideGlobalFunctions();
},
onAfterBrowserInit : function TSTWH_onAfterBrowserInit()
{
this.overrideExtensionsAfterBrowserInit(); // hacks.js
},
updateTabDNDObserver : function TSTWH_updateTabDNDObserver(aObserver)
{

View File

@ -407,8 +407,9 @@ TreeStyleTabWindow.prototype = {
this.initUninstallationListener();
w.TreeStyleTabWindowHelper.init();
w.TreeStyleTabWindowHelper.onBeforeBrowserInit();
this.initTabBrowser(this.browser);
w.TreeStyleTabWindowHelper.onAfterBrowserInit();
this.processRestoredTabs();
this.updateTabsOnTop();