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

A new property added after backup() was applied is not removed when restore() is called #15

Open
gorokhovvs opened this issue Jul 30, 2018 · 0 comments

Comments

@gorokhovvs
Copy link

gorokhovvs commented Jul 30, 2018

Hi there,
I've got an issue. I'm migrating my code from CanJS v2 and using define maps instead of can.Map.
As I see can-map-backup uses this.attr(props, true); when restoring initial value. And it removes all the protperties added during backup. But can-define-backup just assign stored properties this[prop] = props[prop]; - and it doesn't remove new props.
Is this an expected behavior or this will be fixed in near future?

BTW Will it work as a temporary solution if I will use this.update()?

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