-
-
Notifications
You must be signed in to change notification settings - Fork 103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expressions never removed from observable._expressions #90
Comments
Hi @henrikekblad, You are absolutely correct. I am marking this as bug. The expressions should be removed from the |
Thanks, note that this probably also means DOM elements never gets garbage collected correctly. |
Indeed there was such a bug but it was resolved. You could see the commit 86b559d |
I'm working on the same project as @henrikekblad and you are right. The "DOM elements leak" was nothing more than a lazy guess by me. I have updated the jsfiddle to show that you are correct, and as a result an exception will be throw instead when trying to evaluate the "dom-less" expression... :)
|
We realized this while trying to come up with a quick-n-dirty alternative render query (while waiting for #83). |
Observables used in expressions will now get stored in ``elementData.observables`` before only data-query methods got stored there. Fixes astoilkov#90
Added garbadge collection for observables._expressions. FIxes #90
Hi,
We notice that expressions are never removed from observable._expressions. Is this correct?
https://jsfiddle.net/bynxrd0j/
The text was updated successfully, but these errors were encountered: