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

Do not allow free override of computed properties #73

Open
medikoo opened this issue Sep 16, 2016 · 0 comments
Open

Do not allow free override of computed properties #73

medikoo opened this issue Sep 16, 2016 · 0 comments
Assignees

Comments

@medikoo
Copy link
Owner

medikoo commented Sep 16, 2016

At this point when one do obj.computed = true it persistently shadows getter with direct value.
It can lead to hard to track bugs if done by mistake.

Such operation should be allowed only via dedicated method e.g.:

obj.overrideComputed('computed', true);

Related issue: medikoo/dbjs-persistence#22

@medikoo medikoo self-assigned this Sep 16, 2016
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