* 最初の状態も記憶

* 読み込みタイミング修正

git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@5623 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
piro 2009-12-25 16:43:16 +00:00
parent 1d7d61ad5f
commit 16f8cc66bf
2 changed files with 8 additions and 8 deletions

View File

@ -1318,14 +1318,6 @@ var TreeStyleTabService = {
window.removeEventListener('DOMContentLoaded', this, true); window.removeEventListener('DOMContentLoaded', this, true);
if (!document.getElementById('content')) return; 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); window.addEventListener('SSTabRestoring', this, true);
if ('swapBrowsersAndCloseOther' in document.getElementById('content')) { if ('swapBrowsersAndCloseOther' in document.getElementById('content')) {
@ -2948,6 +2940,13 @@ catch(e) {
namespace namespace
); );
TreeStyleTabService.__proto__ = namespace.window['piro.sakura.ne.jp'].prefs; 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('DOMContentLoaded', TreeStyleTabService, true);
window.addEventListener('load', TreeStyleTabService, false); window.addEventListener('load', TreeStyleTabService, false);

View File

@ -42,6 +42,7 @@ var TreeStyleTabCommon = {
if (this._initialized) return; if (this._initialized) return;
this.addPrefListener(this); this.addPrefListener(this);
this._tabbarPositionHistory.push(this.currentTabbarPosition);
}, },
_initialized : false, _initialized : false,