コピペミス

git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@6457 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
piro 2010-03-25 15:52:11 +00:00
parent d6e53f20b6
commit 8530305660
2 changed files with 4 additions and 4 deletions

View File

@ -3463,12 +3463,11 @@ TreeStyleTabBrowser.prototype = {
return this.getTabById(aId) && aId != id;
}, this).join('|')
);
this.deleteTabValue(aChild, this.kPARENT);
if (!this.hasChildTabs(parentTab))
this.setTabValue(parentTab, this.kSUBTREE_COLLAPSED, true);
this.deleteTabValue(aChild, this.kPARENT);
this.updateTabsCount(parentTab);
if (!aInfo.dontUpdateIndent) {
@ -4144,7 +4143,8 @@ TreeStyleTabBrowser.prototype = {
scrollToTab : function TSTBrowser_scrollToTab(aTab)
{
if (!aTab || this.isTabInViewport(aTab)) return;
if (!aTab || !aTab.parentNode || this.isTabInViewport(aTab))
return;
var b = this.mTabBrowser;

View File

@ -1464,7 +1464,7 @@ var TreeStyleTabUtils = {
for (let i = list.length-1; i > -1; i--)
{
lastChild = this.getTabById(list[i], aTab);
if (lastChild && firstChild != aTab) break;
if (lastChild && lastChild != aTab) break;
}
}
return lastChild;