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

Method dispose

packages/fairygui/src/core/GComponent.ts:959–978  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

957 // Disposal | 销毁
958
959 public dispose(): void {
960 for (const t of this._transitions) {
961 t.dispose();
962 }
963 this._transitions.length = 0;
964
965 for (const c of this._controllers) {
966 c.dispose();
967 }
968 this._controllers.length = 0;
969
970 if (this._scrollPane) {
971 this._scrollPane.dispose();
972 this._scrollPane = null;
973 }
974
975 this.removeChildren(0, -1, true);
976
977 super.dispose();
978 }
979
980 // Render data collection | 渲染数据收集
981

Callers

nothing calls this directly

Calls 2

removeChildrenMethod · 0.95
disposeMethod · 0.65

Tested by

no test coverage detected