Skip to content
This repository was archived by the owner on Apr 4, 2019. It is now read-only.
This repository was archived by the owner on Apr 4, 2019. It is now read-only.

garbage collection #1

@timoxley

Description

@timoxley

I haven't tested this yet, but I have a good feeling once an element is 'dataized' it can never be garbage collected. Storing the els in a WeakMap will solve this in ES6, but in the meantime, you may want to consider adding something like component/removed to .del the data+el reference automatically an element is removed from the dom.

This could be an optional setting, eg.

var api = data(el, {autoremove: true})

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