タブの親子関係を構築する際に、存在しなくなったタブのIDが子タブのリストに残ることがあったのを修正(したつもり)

git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@4145 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
piro 2009-04-20 11:47:41 +00:00
parent 7c8c230fe9
commit b9ced78e3d

View File

@ -2654,6 +2654,10 @@ TreeStyleTabBrowser.prototype = {
newIndex = refTab._tPos+1; newIndex = refTab._tPos+1;
} }
children = children.split('|').filter(function(aId) {
return this.getTabById(aId);
}, this)
this.setTabValue(aParent, this.kCHILDREN, children); this.setTabValue(aParent, this.kCHILDREN, children);
this.setTabValue(aChild, this.kPARENT, aParent.getAttribute(this.kID)); this.setTabValue(aChild, this.kPARENT, aParent.getAttribute(this.kID));
this.updateTabsCount(aParent); this.updateTabsCount(aParent);