()
| 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 |
nothing calls this directly
no test coverage detected