Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: add removed elements to WeakMap, create getParentElement helper
When an element is removed, add it to a WeakMap incase it was a parent element that is still being referenced. Any `node.parentElement` call should use the `getParentElement(node)` utility function.
- Loading branch information
1 parent
c423a27
commit 8b63a2e
Showing
3 changed files
with
33 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters