XPath式を改行

git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@6422 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
piro 2010-03-24 13:25:47 +00:00
parent dc97cf3cc1
commit 4f65a3a9a1

View File

@ -1262,7 +1262,10 @@ var TreeStyleTabUtils = {
var id = aTab.getAttribute(this.kID); var id = aTab.getAttribute(this.kID);
if (!id) return null; // not initialized yet if (!id) return null; // not initialized yet
return this.evaluateXPath( return this.evaluateXPath(
'preceding-sibling::xul:tab[contains(concat("|", @'+this.kCHILDREN+', "|"), "|'+id+'|")]', 'preceding-sibling::xul:tab[contains('+
'concat("|", @'+this.kCHILDREN+', "|"),'+
'"|'+id+'|"'+
')][1]',
aTab, aTab,
Ci.nsIDOMXPathResult.FIRST_ORDERED_NODE_TYPE Ci.nsIDOMXPathResult.FIRST_ORDERED_NODE_TYPE
).singleNodeValue; ).singleNodeValue;