XULTreeViewRecord.close Member
close this record, hiding it's children. DONT call this method if the record has no children, or if it is already closed.
Syntax
object.close();
Returns
Remarks
See Also
Source Code
function xtvr_close ()
{
if (!this.isContainerOpen)
return;
this.isContainerOpen = false;
var delta = 1 - this.visualFootprint;
this.visualFootprint += delta;
if ("parentRecord" in this)
{
this.parentRecord.onVisualFootprintChanged(this.calculateVisualRow(),
0);
this.parentRecord.onVisualFootprintChanged(this.calculateVisualRow() +
1, delta);
}
if ("onPostClose" in this)
this.onPostClose();
}