XPathResult => nsIDOMXPathResult

git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@5632 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
piro 2009-12-25 18:48:07 +00:00
parent 4d8455d8b9
commit 96e25d943b

View File

@ -409,22 +409,22 @@ var TreeStyleTabUtils = {
if (!tab || !this.hasChildTabs(tab)) return false;
var expression = 'ancestor-or-self::*[@class="'+this.kTWISTY+'"]';
if (this.shouldExpandTwistyArea && !this._expandTwistyAreaBlockeds.length)
if (this.shouldExpandTwistyArea && !this._expandTwistyAreaBlockers.length)
expression += ' | ancestor-or-self::*[@class="tab-icon" and ancestor::xul:tabbrowser[@'+this.kMODE+'="vertical"]]';
return this.evaluateXPath(
expression,
aEvent.originalTarget || aEvent.target,
XPathResult.BOOLEAN_TYPE
Ci.nsIDOMXPathResult.BOOLEAN_TYPE
).booleanValue;
},
registerExpandTwistyAreaBlocker : function TSTUtils_registerExpandTwistyAreaBlocker(aBlocker) /* PUBLIC API */
{
if (this._expandTwistyAreaBlockeds.indexOf(aBlocker) < 0)
this._expandTwistyAreaBlockeds.push(aBlocker);
if (this._expandTwistyAreaBlockers.indexOf(aBlocker) < 0)
this._expandTwistyAreaBlockers.push(aBlocker);
},
_expandTwistyAreaBlockeds : [],
_expandTwistyAreaBlockers : [],
registerExpandTwistyAreaAllowance : function TSTUtils_registerExpandTwistyAreaAllowance(aAllowance) /* PUBLIC API, obsolete, for backward compatibility */
{