From 16f8cc66bf6223f173ffdb062b827c902412db5f Mon Sep 17 00:00:00 2001 From: piro Date: Fri, 25 Dec 2009 16:43:16 +0000 Subject: [PATCH] =?UTF-8?q?*=20=E6=9C=80=E5=88=9D=E3=81=AE=E7=8A=B6?= =?UTF-8?q?=E6=85=8B=E3=82=82=E8=A8=98=E6=86=B6=20*=20=E8=AA=AD=E3=81=BF?= =?UTF-8?q?=E8=BE=BC=E3=81=BF=E3=82=BF=E3=82=A4=E3=83=9F=E3=83=B3=E3=82=B0?= =?UTF-8?q?=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@5623 599a83e7-65a4-db11-8015-0010dcdd6dc2 --- content/treestyletab/treestyletab.js | 15 +++++++-------- modules/common.jsm | 1 + 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/content/treestyletab/treestyletab.js b/content/treestyletab/treestyletab.js index a7772150..bff96aef 100644 --- a/content/treestyletab/treestyletab.js +++ b/content/treestyletab/treestyletab.js @@ -1318,14 +1318,6 @@ var TreeStyleTabService = { window.removeEventListener('DOMContentLoaded', this, true); if (!document.getElementById('content')) return; - var namespace = {}; - Components.utils.import( - 'resource://treestyletab-modules/common.jsm', - namespace - ); - this.common = namespace.TreeStyleTabCommon; - this.common.init(); - window.addEventListener('SSTabRestoring', this, true); if ('swapBrowsersAndCloseOther' in document.getElementById('content')) { @@ -2948,6 +2940,13 @@ catch(e) { namespace ); TreeStyleTabService.__proto__ = namespace.window['piro.sakura.ne.jp'].prefs; + + Components.utils.import( + 'resource://treestyletab-modules/common.jsm', + namespace + ); + TreeStyleTabService.common = namespace.TreeStyleTabCommon; + TreeStyleTabService.common.init(); })(); window.addEventListener('DOMContentLoaded', TreeStyleTabService, true); window.addEventListener('load', TreeStyleTabService, false); diff --git a/modules/common.jsm b/modules/common.jsm index 4c271e75..e0ba4e46 100644 --- a/modules/common.jsm +++ b/modules/common.jsm @@ -42,6 +42,7 @@ var TreeStyleTabCommon = { if (this._initialized) return; this.addPrefListener(this); + this._tabbarPositionHistory.push(this.currentTabbarPosition); }, _initialized : false,