複製されたタブの親が取得できてしまうことがあったのを修正

git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@1840 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
piro 2008-02-22 21:09:09 +00:00
parent 5a44556401
commit 06427b0d35

View File

@ -533,7 +533,7 @@ var TreeStyleTabService = {
var id = aTab.getAttribute(this.kID);
if (!id) return null; // not initialized yet
return this.evaluateXPath(
'parent::*/child::xul:tab[contains(@'+this.kCHILDREN+', "'+id+'")]',
'parent::*/child::xul:tab[contains(concat("|", @'+this.kCHILDREN+', "|"), "|'+id+'|")]',
aTab,
XPathResult.FIRST_ORDERED_NODE_TYPE
).singleNodeValue;