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

Method destroy

packages/melonjs/src/renderable/entity/entity.js:379–388  ·  view source on GitHub ↗

* Destroy function * @ignore

()

Source from the content-addressed store, hash-verified

377 * @ignore
378 */
379 destroy() {
380 // free some property objects
381 if (this.renderable) {
382 this.renderable.destroy.apply(this.renderable, arguments);
383 this.children.splice(0, 1);
384 }
385
386 // call the parent destroy method
387 super.destroy(arguments);
388 }
389
390 /**
391 * onDeactivateEvent Notification function

Callers

nothing calls this directly

Calls 2

destroyMethod · 0.65
applyMethod · 0.45

Tested by

no test coverage detected