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

Method destroy

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

* Destroy function * @ignore

()

Source from the content-addressed store, hash-verified

1096 * @ignore
1097 */
1098 destroy() {
1099 // empty the container
1100 this.reset();
1101 // call the parent destroy method
1102 super.destroy(arguments);
1103
1104 colorPool.release(this.backgroundColor);
1105 }
1106
1107 /**
1108 * container update function. <br>

Callers

nothing calls this directly

Calls 3

resetMethod · 0.95
destroyMethod · 0.65
releaseMethod · 0.65

Tested by

no test coverage detected