angular/packages/zone.js/lib
arturovt a9460d08a0 fix(zone.js): remove abort listener on a signal when actual event is removed (#55339)
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
2024-05-07 08:07:33 -07:00
..
browser refactor: migrate zone.js to prettier formatting (#55427) 2024-04-29 09:52:05 -07:00
common fix(zone.js): remove abort listener on a signal when actual event is removed (#55339) 2024-05-07 08:07:33 -07:00
extra refactor: migrate zone.js to prettier formatting (#55427) 2024-04-29 09:52:05 -07:00
jasmine refactor: migrate zone.js to prettier formatting (#55427) 2024-04-29 09:52:05 -07:00
jest refactor: migrate zone.js to prettier formatting (#55427) 2024-04-29 09:52:05 -07:00
mix refactor(zone.js): update Zone bundles to call patch* functions (#53443) 2024-03-15 18:11:33 -07:00
mocha refactor: migrate zone.js to prettier formatting (#55427) 2024-04-29 09:52:05 -07:00
node fix(zone.js): add missing APIs to Node.js fs patch (#54396) 2024-05-03 08:03:25 -07:00
rxjs refactor: migrate zone.js to prettier formatting (#55427) 2024-04-29 09:52:05 -07:00
testing refactor: migrate zone.js to prettier formatting (#55427) 2024-04-29 09:52:05 -07:00
zone-spec refactor: migrate zone.js to prettier formatting (#55427) 2024-04-29 09:52:05 -07:00
BUILD.bazel refactor(zone.js): package Zone *.d.ts files (#53443) 2024-03-15 18:11:34 -07:00
zone-global.d.ts fix(zone.js): remove global declaration (#37861) 2020-10-23 15:19:49 -07:00
zone-impl.ts refactor: migrate zone.js to prettier formatting (#55427) 2024-04-29 09:52:05 -07:00
zone.api.extensions.ts refactor(zone.js): change from scripts to modules (#53445) 2024-01-09 13:20:50 -08:00
zone.configurations.api.ts refactor: migrate zone.js to prettier formatting (#55427) 2024-04-29 09:52:05 -07:00
zone.ts refactor: migrate zone.js to prettier formatting (#55427) 2024-04-29 09:52:05 -07:00