Helma logo
helma.org » Home > Stories > HopObject.removeChild()

HopObject.removeChild()

Notifies a parent object that a child object has been removed.

Syntax
HopObject.removeChild(HopObject)

The removeChild() function lets a parent object know that a child object has been removed. Note that calling removeChild() will not actually delete the child object. Directly call remove() on the child object in order to delete it from the database.

Example
res.write(parent.size());
24
var child = parent.get(5);
child.remove();
parent.removeChild(child);
res.write(parent.size());
23


... comment


Page last modified on 2004-02-20 19:58 by