Skip to content
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

Behavior when map has no listener changed #78

Open
Macrofig opened this issue Nov 2, 2017 · 0 comments
Open

Behavior when map has no listener changed #78

Macrofig opened this issue Nov 2, 2017 · 0 comments

Comments

@Macrofig
Copy link

Macrofig commented Nov 2, 2017

Previously (at least in CanJS 3.2), the behavior for can Map getters would behave one way in respect to setting a value. In 3.11, the behavior has changed.

In 3.2, if a getter had a listener registered on it, the response would be the result of any setter that was previously run. If there was NO listener, than the result would be the result of the getter compute.

In 3.11, regardless if there is a listener or not, the result is always the getter function result.

3.2 JSBin: http://jsbin.com/fakive/11/edit?js,console
3.11 JSBin: http://jsbin.com/ruponoc/11/edit?js,console

Basically, there needs to be some way to get the old behavior as this caused breaking changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant