From 3657a95c2ea828a3af404700acf2b7c59c9e3d07 Mon Sep 17 00:00:00 2001 From: Piro / SHIMODA Hiroshi Date: Sun, 5 Aug 2012 05:49:17 +0900 Subject: [PATCH] Fix conflict with Informational Tab --- modules/browser.js | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/modules/browser.js b/modules/browser.js index 136afc28..b6755799 100644 --- a/modules/browser.js +++ b/modules/browser.js @@ -42,6 +42,8 @@ Components.utils.import('resource://treestyletab-modules/window.js'); function TreeStyleTabBrowser(aWindowService, aTabBrowser) { + this.id = Date.now() + '-' + parseInt(Math.random() * 65000); + this.windowService = aWindowService; this.window = aWindowService.window; this.document = aWindowService.document; @@ -51,6 +53,15 @@ function TreeStyleTabBrowser(aWindowService, aTabBrowser) this.tabVisibilityChangedTabs = []; this.updateTabsIndentWithDelayTabs = []; + this.deferredTasks = {}; + + this.tabsHash = {}; + this.tabVisibilityChangedTabs = []; + this._updateFloatingTabbarReason = 0; + this.internallyTabMovingCount = 0; + this.subTreeMovingCount = 0; + this.subTreeChildrenMovingCount = 0; + this._treeViewEnabled = true; } TreeStyleTabBrowser.prototype = { @@ -586,8 +597,6 @@ TreeStyleTabBrowser.prototype = { init : function TSTBrowser_init() { - this.id = Date.now() + '-' + parseInt(Math.random() * 65000); - this.stopRendering(); var w = this.window; @@ -598,16 +607,6 @@ TreeStyleTabBrowser.prototype = { if (b.tabContainer.parentNode.localName == 'toolbar') b.tabContainer.parentNode.classList.add(this.kTABBAR_TOOLBAR); - this.deferredTasks = {}; - - this.tabsHash = {}; - this.tabVisibilityChangedTabs = []; - this._updateFloatingTabbarReason = 0; - this.internallyTabMovingCount = 0; - this.subTreeMovingCount = 0; - this.subTreeChildrenMovingCount = 0; - this._treeViewEnabled = true; - /** * On secondary (and later) window, SSWindowStateBusy event can be fired * before DOMContentLoad, on "domwindowopened".