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

Bad behavior when a src property is empty. #3

Closed
sttk opened this issue Apr 16, 2018 · 1 comment
Closed

Bad behavior when a src property is empty. #3

sttk opened this issue Apr 16, 2018 · 1 comment

Comments

@sttk
Copy link
Contributor

sttk commented Apr 16, 2018

When src's property of s empty, and a corresponding dst property is an object, the dst property becomes empty. For example:

var src = { a: { b: {} } };
var dst = { a: { b: { c: 1 } } };
copyProps(src, dst); // => { a: { b: {} } }
sttk added a commit that referenced this issue Apr 16, 2018
@sttk
Copy link
Contributor Author

sttk commented Apr 16, 2018

This issue was fixed.

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

No branches or pull requests

1 participant