-
Notifications
You must be signed in to change notification settings - Fork 221
Closed
Description
If you observe
an object, I think it stays in memory after all references to it are gone (even if you unobserve
it).
I'm not certain, but I suspect that the beforeDict
is what's holding on to it. When the observer is created, we push
onto the array, but we never splice
it out.
It would be great if we could use weak references in that array, but I don't think that's possible in JavaScript. Can we just splice it in the unobserve function?
Metadata
Metadata
Assignees
Labels
No labels