I have a “Cancel” button on my page which should reverts all the changes I made back to the state it was loaded from server..
I guess I need to store an initial state of Backbonejs model and restore a current (changed) state back to initial.
What is the best way to achieve that?
Thank you
FWIW – i wrote a plugin to handle this automatically, specifically with the idea of “cancel” buttons in mind: http://github.com/derickbailey/backbone.memento