MCPcopy Index your code
hub / github.com/KilledByAPixel/LittleJS / addChild

Method addChild

plugins/uiSystem.js:770–776  ·  view source on GitHub ↗

Add a child UIObject to this object, returns child for chaining * @param {UIObject} child * @return {UIObject} The child object added

(child)

Source from the content-addressed store, hash-verified

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 */

Callers 13

showConfirmDialogMethod · 0.95
gameInitFunction · 0.95
smoke.test.mjsFile · 0.45
constructorMethod · 0.45
addChildMethod · 0.45
gameInitFunction · 0.45
gameInitFunction · 0.45
gameInitFunction · 0.45
gameInitFunction · 0.45
constructorMethod · 0.45
constructorMethod · 0.45
constructorMethod · 0.45

Calls 1

ASSERTFunction · 0.50

Tested by

no test coverage detected