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

Small fix in cloning methods #586

Merged
merged 2 commits into from
Jul 22, 2017
Merged

Conversation

ichursin
Copy link
Contributor

  • add correct saving object prototype when we cloning data

ichursin added 2 commits July 20, 2017 00:50
* add correct saving object prototype
*trailing spaces
@ichursin ichursin changed the title Small fix cloning methods Small fix in cloning methods Jul 19, 2017
@obeliskos
Copy link
Collaborator

I'll try to look at this tonight... sounds similar to our not very well documented 'protos' functionality. Do you persist your data and if so are the protos attached correctly across saves?

@obeliskos
Copy link
Collaborator

This seems to work great with some of the edge cases I threw at it (forceClones on chained data, as well as defining collection protos to inflate with in db constructor). We should probably cover all those edge cases better, I will look at that if I get a few minutes later...

Thanks!

@obeliskos obeliskos merged commit 7413ee6 into techfort:master Jul 22, 2017
Viatorus added a commit to LokiJS-Forge/LokiDB that referenced this pull request Oct 5, 2017
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.

2 participants