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

Replace get/set functions with properties : Core #1573

Merged
merged 4 commits into from
Mar 26, 2014
Merged

Conversation

hpinkos
Copy link
Contributor

@hpinkos hpinkos commented Mar 26, 2014

#1421

Occluder, LeapSecond, Fullscreen, Event, EllipsoidGeodesic

defineProperties(EllipsoidGeodesic.prototype, {
/**
* The surface distance between the start and end point
* @memberof EllipsoidGeodesic.prototype
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Throughout, @memberof doesn't need the .prototype, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was told in other pull request to do it this way

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This pull request has it both ways, e.g., see endHeading below. The Model code also doesn't have .prototype on properties. Whichever generates the right doc is OK with me.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Anything inside of a defineProperties block needs to have the .prototype. Things defined directly on the object in the constructor function do not. That's why Model works as it does. In reality we need to update JSDoc as I'm sure there are plenty of fixes to these quirks, @shunter said the latest version can do our entire code base in under a minute. Whatever pain we have to go through to update will be worth it.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, OK. At closer look, ModelAnimationCollection.length is static. Will submit a separate issue.

@pjcozzi
Copy link
Contributor

pjcozzi commented Mar 26, 2014

Tests and Sandcastle are good. Just those minor comments.

@hpinkos
Copy link
Contributor Author

hpinkos commented Mar 26, 2014

@pjcozzi Should i change Fullscreen.isFullscreen to just be fullscreen since I changed isEnabled?

Other than that, this should be ready to go.

@pjcozzi
Copy link
Contributor

pjcozzi commented Mar 26, 2014

@pjcozzi Should i change Fullscreen.isFullscreen to just be fullscreen since I changed isEnabled?

Sure.

@hpinkos
Copy link
Contributor Author

hpinkos commented Mar 26, 2014

@pjcozzi ready

pjcozzi added a commit that referenced this pull request Mar 26, 2014
Replace get/set functions with properties : Core
@pjcozzi pjcozzi merged commit d7a060d into master Mar 26, 2014
@pjcozzi pjcozzi deleted the replaceGetSetCore branch March 26, 2014 20:54
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

Successfully merging this pull request may close these issues.

3 participants