BarkSoftware / beer-napkin

Phoenix app that lets you mockup UIs (napkins) and collaborate easily through Github.
0 stars 0 forks source link

Fixing cloned object problem #17

Closed brandonjoyce closed 8 years ago

brandonjoyce commented 8 years ago

Resolves #13

For some reason the fabricjs utility method for cloning objects was maintaining some kind of reference to the original object so changes to the clone would affect the original.

I'm fixing this by serializing the object and deserializing into a completely new object.