()
| 369 | } |
| 370 | |
| 371 | override onRemoved(): void { |
| 372 | // Clean up all subgraph event listeners |
| 373 | this.#eventAbortController.abort() |
| 374 | |
| 375 | // Clean up all promoted widgets |
| 376 | for (const widget of this.widgets) { |
| 377 | this.subgraph.events.dispatch("widget-demoted", { widget, subgraphNode: this }) |
| 378 | } |
| 379 | |
| 380 | for (const input of this.inputs) { |
| 381 | input._listenerController?.abort() |
| 382 | } |
| 383 | } |
| 384 | } |
no test coverage detected