plainheart commented on issue #21083: URL: https://github.com/apache/echarts/issues/21083#issuecomment-3031974847
Thanks for your feedback. When an element is removed from the DOM and there is no reference to this element, its event listeners should be garbage-collected as expected later. Could you use [`FinalizationRegistry`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/FinalizationRegistry) to check this behavior? Anyway, explicitly removing the event handlers is the best practice. Feel free to submit a PR if you think these event listeners will never be garbage-collected. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
