Open timoxley opened 11 years ago
Could be problematic if someone is doing temporary manipulation of the dom, e.g. removing elements to reorder them, so perhaps it could wait a few hundred milliseconds, if the item is not readded to the dom, then it'd remove the data.
i actually don't use this component at all, i just use model and reactive.
i can transfer this repo to you or just add you to this repo.
add me :D
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.