-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Conversation
Thanks for the pull request @abuDarda97!
Reviewers, don't forget to make sure that:
|
Individual CLA text file has been sent. |
Thanks again for contributing, @abuDarda97, we received your CLA. |
@pjcozzi you're welcome, I am glad that I can help. |
There was a problem hiding this 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.
Source/Renderer/Context.js
Outdated
@@ -191,7 +191,7 @@ define([ | |||
this._canvas = canvas; | |||
|
|||
options = clone(options, true); | |||
options = defaultValue(options, {}); | |||
options = defaultValue(options, defaultValue.EMPTY_OBJECT); |
There was a problem hiding this comment.
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
.
There was a problem hiding this comment.
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, {});
?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 |
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 |
This pull request solves issue 7588. The object literals in
options = defaultValue(options, {});
have been replaced withdefaultValue.EMPTY_OBJECT
.The CONTRIBUTORS.md file has been updated with my information.