XULTreeViewRecord.reserveChildren Member

call this to indicate that this node may have children at one point. make sure to call it before adding your first child.

Syntax

object.reserveChildren(always);

Arguments

ArgumentSummary
always

Returns

Remarks

See Also

Source Code

function xtvr_rkids (always)
{
if (!("childData" in this))
this.childData = new Array();
if (!("isContainerOpen" in this))
this.isContainerOpen = false;
if (always)
this.alwaysHasChildren = true;
else
delete this.alwaysHasChildren;
}