mbrio / backbone.suggestions

An autocompletion view for Backbone.js
MIT License
10 stars 1 forks source link

Convert saving model data to Backbone.sync #5

Open mbrio opened 12 years ago

mbrio commented 12 years ago

Since I was unable to figure out how to use Backbone.sync with the localStorage plugin I created my own means of saving the cache to localStorage. I'd like to figure out how to properly use Backbone.sync with my models.

mbrio commented 12 years ago

I'm currently in the middle of this, it seems as though the original localStorage Backbone plugin had a bit of bugs that were driving me nuts. Oddly enough the localStorage backbone plugin that is in the Backbone.js GitHub repository is broken(?); I ended up using the plugin from this URL: https://github.com/k33g/ossicle/blob/master/js/backbone.sync/backbone-sync-localstorage.js which seems to work. I have it working in my specs but I have not converted the main project to work in this way.