Sometimes, you may need to manage the states of a model in your application. This can be useful in one of the following cases:
Typically for all of the previous cases developers often use the
Memento pattern. There is an implementation of this pattern in Backbone, which is available in the
Backbone.Memento extension. This extension allows developers to store or restore a model's state and provides a stack for operating with multiple states.
You can download the
Backbone.Memento extension from the GitHub page ...