How to rollback backbone.js model changes?

Viewed 11279

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

5 Answers
Related