-
Notifications
You must be signed in to change notification settings - Fork 422
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
Compute memory leak with nested properties #1676
Comments
This is likely due to can.Map thinking that compute represents a define.get. |
Looked into this. First, I don't think you should be writing your code like this. There's no reason to bind to "change" events on I'm not sure why you would set a compute as a property value of an attribute either. All that being said, it would still be nice to make this work. The problem is that this code creates a "cycle" of binding that isn't being detected while unbinding. |
#1231 is probably related |
Closed by #1696. |
Apparently if you manually add a compute to a Map, and the compute depends on a deep property of that same Map, it can leak bindings if used in conjunction with other event bindings in a certain order.
http://jsbin.com/nadelesulu/1/edit?html,js,console
The text was updated successfully, but these errors were encountered: