Backbone.Safe icon indicating copy to clipboard operation
Backbone.Safe copied to clipboard

Documentation on restoring from localstorage

Open ikido opened this issue 12 years ago • 1 comments

Hi Oren, thanks for great plugin!

Please adivce how to restore saved models and collections from localstorage with your plugin? If you could provide sample code I will be glad to write the docs =)

ikido avatar Feb 13 '13 11:02 ikido

Hi @ikido . if you refresh the page and create a Safe with the same key, it will restore the last saved data from local storage. otherwise, you can refer to "this.safe" and invoke the "getData" method.

orizens avatar Feb 13 '13 11:02 orizens