IChild
Extends IEventEmitter.
Interface for an object that has a parent.
Constructor | Fields | Events | Methods
Constructor
IChild()
Fields
Name |
Type |
Description |
Event manager. Inherited from IEventEmitter. |
Events
Name |
Description |
The parent object reference changed. Data fields:
|
Methods
Name |
Returns |
Description |
Object |
Returns reference to the parent object. |
|
Sets the parent object. |
Events details
parentchange
The parent object reference changed.
Data fields:
- oldParent - Old parent.
- newParent - New parent.
Methods details
getParent
{Object} getParent()
Returns reference to the parent object.
setParent
{IChild} setParent(parent)
Sets the parent object.
Returns self-reference.
Parameters:
Parameter |
Default value |
Description |
— |
Type: Object Parent object. |
* Mandatory parameter/option.
Mandatory parameter/option.