You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Any suggestions how to deal with models that have an array as an attribute? Doing model.store(), modifying the array, model.restore() won't work, because the array was modified by reference.
What I did was pretty much replace _.clone with JSON.stringify, it does the job for me :) But I wonder if you've used memento with such models.
The text was updated successfully, but these errors were encountered:
Any suggestions how to deal with models that have an array as an attribute? Doing model.store(), modifying the array, model.restore() won't work, because the array was modified by reference.
What I did was pretty much replace _.clone with JSON.stringify, it does the job for me :) But I wonder if you've used memento with such models.
The text was updated successfully, but these errors were encountered: