mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
This commit updates the implementation of the `addEventListener` patcher. We're currently creating an abort event listener on the signal (when it's provided) and never remove it. The abort event listener creates a closure which captures `task` (tasks capture zones and other stuff too) and prevent `task`, zones and signals from being garbage collected. We now store the function which removes the abort event listener when the actual event listener is being removed. The function is stored on task data since task data is already being used to store different types of information that's necessary to be shared between `addEventListener` and `removeEventListener`. Closes #54739 PR Close #55339 |
||
|---|---|---|
| .. | ||
| error-rewrite.ts | ||
| events.ts | ||
| fetch.ts | ||
| promise.ts | ||
| queue-microtask.ts | ||
| rollup-error-rewrite.ts | ||
| rollup-fetch.ts | ||
| timers.ts | ||
| to-string.ts | ||
| utils.ts | ||