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

issues with Properties for measuring tape visibility #187

Closed
pixelzoom opened this issue Nov 9, 2015 · 2 comments
Closed

issues with Properties for measuring tape visibility #187

pixelzoom opened this issue Nov 9, 2015 · 2 comments
Assignees

Comments

@pixelzoom
Copy link
Contributor

Related to code review #173.

Here's the code in question:

 function GravityAndOrbitsModule( showMeasuringTape, createModes, initialModeIndex, showMassCheckBox ) {

    // Properties that are common to all "modes" should live here.
    PropertySet.call( this, {
      ...
      measuringTapeVisible: false,
      ...
      showMeasuringTape: false
    } );

    ...

    this.showMeasuringTape = showMeasuringTape;

(1) Why are there 2 properties related to visibility of the measuring tape? (measuringTapeVisible, showMeasuringTape)

(2) Why is the function argument not used to set the initial value of showMeasuringTape or measuringTapeVisible?

@pixelzoom pixelzoom changed the title issues with properties for measuring tape visibility issues with Properties for measuring tape visibility Nov 9, 2015
@aaronsamuel137
Copy link
Contributor

Good catch. showMeasuringTape is supposed to be a boolean and not a property. I have corrected and documented. Assigning to @pixelzoom for review.

@pixelzoom
Copy link
Contributor Author

👍 Closing.

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

No branches or pull requests

3 participants