Skip to content

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

@rklancer

Description

@rklancer

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions