複数タブの復元かどうかの判別を、タブが開かれた直後のタイミングでも行うようにした。

git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@5543 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
piro 2009-12-18 02:21:28 +00:00
parent e2e09a93a2
commit 6af1f2e765

View File

@ -1438,7 +1438,18 @@ TreeStyleTabBrowser.prototype = {
this.setTabValue(tab, this.kINSERT_BEFORE, next.getAttribute(this.kID)); this.setTabValue(tab, this.kINSERT_BEFORE, next.getAttribute(this.kID));
this.setTabValue(next, this.kINSERT_AFTER, tab.getAttribute(this.kID)); this.setTabValue(next, this.kINSERT_AFTER, tab.getAttribute(this.kID));
} }
if (!TreeStyleTabService.restoringWindow &&
!this.useTMPSessionAPI &&
!this._checkRestoringWindowTimerOnTabAdded) {
this._checkRestoringWindowTimerOnTabAdded = window.setTimeout(function(aSelf) {
aSelf._checkRestoringWindowTimerOnTabAdded = null;
if (aSelf.getRestoringTabsCount() > 1)
TreeStyleTabService.restoringWindow = true;
}, 0, this);
}
}, },
_checkRestoringWindowTimerOnTabAdded : null,
onTabRemoved : function(aEvent) onTabRemoved : function(aEvent)
{ {