Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace retained element reference with a method #683

Merged
merged 1 commit into from
Jun 10, 2022
Merged

Conversation

pichfl
Copy link
Contributor

@pichfl pichfl commented Jun 3, 2022

This is start of a chain of refactorings with the goal to make the modal component and it's various states more comprehensible and easier to change.

While it should not be an issue, it may happen that a reference to the DOM element that represents the modal gets stuck in memory. Retrieving the element from DOM each time seems to make the garbage collector happier.

This method could and should be replaced by a regular getter once we shift this addon to native classes.

@pichfl pichfl merged commit 96328ba into main Jun 10, 2022
@delete-merged-branch delete-merged-branch bot deleted the pichfl/refactor-1 branch June 10, 2022 13:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants