XULTreeView.restoreBranchState Member

Syntax

object.restoreBranchState(target, source, recurse);

Arguments

ArgumentSummary
target
source
recurse

Returns

Remarks

See Also

Source Code

function xtv_restorebranch (target, source, recurse)
{
for (var i in source)
{
if (typeof source[i] == "object")
{
var name = source[i].name;
var len = target.length;
for (var j = 0; j < len; ++j)
{
if (target[j]._colValues["col-0"] == name &&
"childData" in target[j])
{
//dd ("opening " + name);
target[j].open();
if (recurse)
{
this.restoreBranchState (target[j].childData,
source[i], true);
}
break;
}
}
}
}
}