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

Hold element positions in WeakMap #8749

Merged
merged 1 commit into from
Dec 27, 2022
Merged

Conversation

jonkoops
Copy link
Collaborator

@jonkoops jonkoops commented Dec 26, 2022

Stores positions set with DomUtil.setPosition() in a WeakMap instead of setting a custom 'private' property (_leaflet_pos) on the DOM element itself.

@jonkoops jonkoops added this to the 2.0 milestone Dec 26, 2022
@jonkoops jonkoops self-assigned this Dec 26, 2022
src/dom/DomUtil.js Outdated Show resolved Hide resolved
@jonkoops jonkoops force-pushed the weakmap-domutil-setposition branch from c805544 to 83bee97 Compare December 26, 2022 19:13
@jonkoops jonkoops requested a review from mourner December 26, 2022 19:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants