XULTreeViewRecord.removeChildAtIndex Member

remove a child from this record. updates the tree too. DONT call this with an index not actually contained by this record.

Syntax

object.removeChildAtIndex(index);

Arguments

ArgumentSummary
index

Returns

Remarks

See Also

Source Code

function xtvr_remchild (index)
{
if (!ASSERT(this.childData.length, "removing from empty childData"))
return;
var orphan = this.childData[index];
var fpDelta = -orphan.visualFootprint;
var changeStart = orphan.calculateVisualRow();
delete orphan.parentRecord;
arrayRemoveAt (this.childData, index);
if (!orphan.isHidden && "isContainerOpen" in this && this.isContainerOpen)
{
this.onVisualFootprintChanged (changeStart, fpDelta);
}
}