MCPcopy Create free account
hub / github.com/esengine/esengine / dispose

Function dispose

packages/fairygui/src/display/DisplayObject.ts:626–637  ·  view source on GitHub ↗

* Dispose * 销毁

()

Source from the content-addressed store, hash-verified

624 * 销毁
625 */
626 public dispose(): void {
627 if (this._parent) {
628 this._parent.removeChild(this);
629 }
630
631 for (const child of this._children) {
632 child.dispose();
633 }
634
635 this._children.length = 0;
636 super.dispose();
637 }
638}

Callers

nothing calls this directly

Calls 2

disposeMethod · 0.65
removeChildMethod · 0.45

Tested by

no test coverage detected