Skip to content

Use WeakSet to replace fitties arrray #101

@chigia001

Description

@chigia001

Right now in the code, we are using a plain array to store HTMLElement.

This can cause run-time unable to gabage collector those HTMLElement after the HTMLElement already remove in DOM.

Right now we need to call the unsubscribe on on the fitty instance to instead. But using Weakset, we can let the run-time GC those element for us.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions