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

MD2D property setters and getters don't set closure variables #17

Open
rklancer opened this issue Oct 24, 2012 · 0 comments
Open

MD2D property setters and getters don't set closure variables #17

rklancer opened this issue Oct 24, 2012 · 0 comments

Comments

@rklancer
Copy link
Contributor

In several cases, a closure variable like temperature or viewRefreshInterval is used in modeler.js to maintain state.

However, the property setters for these properties don't affect the closure variable actually used by the code. Instead they only set a member of the properties object.

For example:

> model.set({temperature: 100})
> model.get('temperature')
  100
> model.temperature()
  300
rklancer added a commit to concord-consortium/lab-interactives-site that referenced this issue Mar 2, 2014
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