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

Stops mutating options object #167

Merged
merged 1 commit into from
Oct 8, 2019

Conversation

NikolajDL
Copy link
Contributor

fixes #166

Uses Object.assign() when setting default options, to avoid mutating passed-in options object.

Adds test to ensure options object isn't mutated.

Copy link
Collaborator

@macdja38 macdja38 left a comment

Choose a reason for hiding this comment

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

Looks good, thanks for the PR!

@TehShrike TehShrike merged commit a572ed9 into TehShrike:master Oct 8, 2019
@TehShrike
Copy link
Owner

Published as 4.1.1, thanks!

@oliviertassinari
Copy link

oliviertassinari commented Oct 16, 2019

Does the module support IE 11?

TehShrike pushed a commit that referenced this pull request Oct 21, 2019
TehShrike pushed a commit that referenced this pull request Oct 21, 2019
@ArtskydJ ArtskydJ mentioned this pull request Oct 24, 2019
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.

Don't mutate the options object
4 participants