load TreeStyleTabWindow and TreeStyleTabBrowser constructors in the main window

This commit is contained in:
SHIMODA Hiroshi 2011-05-26 11:09:19 +09:00
parent d67ecd7d80
commit 01200acccd
3 changed files with 10 additions and 9 deletions

View File

@ -12,14 +12,15 @@
<script src="res/UninstallationListener.js" type="application/javascript"/> <script src="res/UninstallationListener.js" type="application/javascript"/>
<script type="application/javascript"><![CDATA[ <script type="application/javascript"><![CDATA[
(function() {
var ns = {}; Components.utils.import('resource://treestyletab-modules/window.js');
Components.utils.import('resource://treestyletab-modules/window.js', ns); Components.utils.import('resource://treestyletab-modules/browser.js');
new ns.TreeStyleTabWindow(window); new TreeStyleTabWindow(window);
})();
]]></script> ]]></script>
<script src="windowHelper.js" type="application/javascript"/> <script src="windowHelper.js" type="application/javascript"/>
<script src="hacks.js" type="application/javascript"/> <script src="windowHelperHacks.js" type="application/javascript"/>
<script src="bookmarksOverlay.js" type="application/javascript"/> <script src="bookmarksOverlay.js" type="application/javascript"/>
<script src="bookmarksOverlayEditable.js" type="application/javascript"/> <script src="bookmarksOverlayEditable.js" type="application/javascript"/>

View File

@ -56,18 +56,18 @@ var TreeStyleTabWindowHelper = {
); );
} }
this.overrideExtensionsPreInit(); // hacks.js this.overrideExtensionsPreInit(); // windowHelperHacks.js
}, },
onBeforeBrowserInit : function TSTWH_onBeforeBrowserInit() onBeforeBrowserInit : function TSTWH_onBeforeBrowserInit()
{ {
this.overrideExtensionsBeforeBrowserInit(); // hacks.js this.overrideExtensionsBeforeBrowserInit(); // windowHelperHacks.js
this.overrideGlobalFunctions(); this.overrideGlobalFunctions();
}, },
onAfterBrowserInit : function TSTWH_onAfterBrowserInit() onAfterBrowserInit : function TSTWH_onAfterBrowserInit()
{ {
this.overrideExtensionsAfterBrowserInit(); // hacks.js this.overrideExtensionsAfterBrowserInit(); // windowHelperHacks.js
}, },
updateTabDNDObserver : function TSTWH_updateTabDNDObserver(aObserver) updateTabDNDObserver : function TSTWH_updateTabDNDObserver(aObserver)