Add a child UIObject to this object, returns child for chaining * @param {UIObject} child * @return {UIObject} The child object added
(child)
| 768 | * @param {UIObject} child |
| 769 | * @return {UIObject} The child object added */ |
| 770 | addChild(child) |
| 771 | { |
| 772 | ASSERT(!child.parent && !this.children.includes(child)); |
| 773 | this.children.push(child); |
| 774 | child.parent = this; |
| 775 | return child; |
| 776 | } |
| 777 | |
| 778 | /** Remove a child UIObject from this object |
| 779 | * @param {UIObject} child */ |
no test coverage detected