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

[BUG] Invalid recursive copy result in the latest version 0.6.2 #12

Closed
faressoft opened this issue Jun 13, 2016 · 1 comment
Closed

Comments

@faressoft
Copy link

faressoft commented Jun 13, 2016

Comparison between 0.6.2 and 0.6.1.

screen shot 2016-06-13 at 2 17 41 pm

This bug is available in the latest version of the deepcopy (0.6.2), the version (0.6.1) if fine.

Code

var services = {
  'name': 'datatable_users',
  'path': '/datatable/users',
  'method': 'get',
  'params': {
    'aaa': {
      'required': false
    }
  }
};

console.log(deepcopy(services));

Output

{
  name: 'datatable_users',
  path: '/datatable/users',
  method: 'get',
  params: 'get'
}

The params gets the value of the previous key.

sasaplus1 added a commit that referenced this issue Jun 13, 2016
sasaplus1 added a commit that referenced this issue Jun 13, 2016
@sasaplus1
Copy link
Owner

I fixed it. Thanks!

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

2 participants