MCPcopy Create free account
hub / github.com/melonjs/melonJS / onActivateEvent

Method onActivateEvent

packages/melonjs/src/renderable/container.js:762–768  ·  view source on GitHub ↗

* @ignore * @param {...*} _args - reserved; widens the signature so subclass * overrides like `onActivateEvent(app)` remain structurally * assignable to the base Container/Renderable type.

(..._args)

Source from the content-addressed store, hash-verified

760 * assignable to the base Container/Renderable type.
761 */
762 onActivateEvent(..._args) {
763 this.forEach((child) => {
764 if (typeof child.onActivateEvent === "function") {
765 child.onActivateEvent();
766 }
767 });
768 }
769
770 /**
771 * Invokes the removeChildNow in a defer, to ensure the child is removed safely after the update & draw stack has completed. <br>

Callers 2

addChildMethod · 0.45
addChildAtMethod · 0.45

Calls 1

forEachMethod · 0.95

Tested by

no test coverage detected