Backbone.Safe
Backbone.Safe copied to clipboard
a plugin for backbone models to save & load data using localstorage as well
- I included proper **Bower** (_bower.json_) and **Node** (_package.json_) support. - the forked component/package name is **backbone.safe-ds** - if you accept the PR please make the necessary updates into url's,...
I am trying to use the Backbone.Safe from a Backbone.Collection but the Backbone.Safe does not appear to function correctly (I get a item in my collection, after a safe.reload(), when...
stop using: ``` javascript this.safe.load(); ``` use: ``` javascript this.fetch('safe'); ```
should be: ``` javascript safe: { key: 'somekey', // exclude one or more multiple values exclude: 'displayTitle displayTime' } ```
should handle when local storage is full.
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...