コピペミス
git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@6457 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
parent
d6e53f20b6
commit
8530305660
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user