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

empty objects in options have been replaced #7793

Merged
merged 4 commits into from
Aug 19, 2019

Conversation

abu271
Copy link

@abu271 abu271 commented Apr 29, 2019

This pull request solves issue 7588. The object literals in options = defaultValue(options, {}); have been replaced with defaultValue.EMPTY_OBJECT.

The CONTRIBUTORS.md file has been updated with my information.

@cesium-concierge
Copy link

Thanks for the pull request @abuDarda97!

  • ❌ Missing CLA.
  • CHANGES.md was not updated.
    • If this change updates the public API in any way, please add a bullet point to CHANGES.md.
  • ❔ Unit tests were not updated.
    • Make sure you've updated tests to reflect your changes, added tests for any new code, and ran the code coverage tool.

Reviewers, don't forget to make sure that:

  • Cesium Viewer works.
  • Works in 2D/CV.
  • Works (or fails gracefully) in IE11.

@abu271
Copy link
Author

abu271 commented Apr 29, 2019

Individual CLA text file has been sent.

@pjcozzi
Copy link
Contributor

pjcozzi commented Apr 29, 2019

Thanks again for contributing, @abuDarda97, we received your CLA.

@abu271
Copy link
Author

abu271 commented Apr 29, 2019

@pjcozzi you're welcome, I am glad that I can help.

Copy link
Contributor

@shunter shunter left a comment

Choose a reason for hiding this comment

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

Just the one error to correct.

@@ -191,7 +191,7 @@ define([
this._canvas = canvas;

options = clone(options, true);
options = defaultValue(options, {});
options = defaultValue(options, defaultValue.EMPTY_OBJECT);
Copy link
Contributor

Choose a reason for hiding this comment

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

This change is incorrect because the line below modifies options.

Copy link
Author

Choose a reason for hiding this comment

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

So, I should change it back to options = defaultValue(options, {}); ?

Copy link
Contributor

Choose a reason for hiding this comment

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

I believe so, yes. Please also put a comment pointing out that options is being modified, which explains why we can't use EMPTY_OBJECT here.

Copy link
Author

Choose a reason for hiding this comment

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

Hi @shunter @emackey I have made the changes, is there anything else I need to change?

@cesium-concierge
Copy link

Thanks again for your contribution @abuDarda97!

No one has commented on this pull request in 30 days. Maintainers, can you review, merge or close to keep things tidy?

I'm going to re-bump this in 30 days. If you'd like me to stop, just comment with @cesium-concierge stop. If you want me to start again, just delete the comment.

@abu271
Copy link
Author

abu271 commented Jul 16, 2019

@OmarShehata

@cesium-concierge
Copy link

Thanks again for your contribution @abuDarda97!

No one has commented on this pull request in 30 days. Maintainers, can you review, merge or close to keep things tidy?

I'm going to re-bump this in 30 days. If you'd like me to stop, just comment with @cesium-concierge stop. If you want me to start again, just delete the comment.

@OmarShehata
Copy link
Contributor

Thanks for the review @shunter and @emackey ! This looks good to me, and can confirm all tests are running locally.

Thanks again @abuDarda97 !

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.

6 participants