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

A localStorage adapter for Backbone.js

Results 10 Backbone.localStorage issues
Sort by recently updated
recently updated
newest added

Using localstorage 2.0.0, I've found that calling `save` on a model using localstorage doesn't always work as intended. The new attributes (if given) are applied correctly, but when fetching the...

bug

I use localStorage collection, works great. But I want use storage event for updating collection in many tabs. Idea: do fetch() when storage event fires. ``` bindStorageEvent : function() {...

bug

In my Backbone Marionette app I'm adding items to the localstorage successfully but it's not returning all the models. In my case an item is added to my cart collection...

when I call `myModel.sync()`, I'm getting > Unable to get property 'collection' of undefined or null reference ```javascript import { Model } from 'backbone'; import { LocalStorage } from 'backbone.localstorage';...

I've read in other comments to another issue that this library wasn't necessary intended to work with single models which might be why I am seeing this issue. I have...

bug

Hi, The issue is easy to reproduce. Simply invoke "destroy" twice in the same model. I'm not saying it is correct invoking "destroy" twice on the same model, but in...

investigate

If I try to delete a model without localstorage set, then I get the url error (explained in the old #50 issue). I have replicated my setup as much as...

I used bower install backbone-localstorage for my project with this command `bower install backbone-localstorage --save` and for some reason when I use it as such: ``` define([ 'underscore', 'backbone', 'models/todo',...

docs

It seems that if model does not have an id then `backbone.localStorage` adapter generate `new` `cid` for it. But when the server returns a new id it `takes over` `model.id`...

bug

findAll() at https://github.com/jeromegn/Backbone.localStorage/blob/master/src/sync.js#L34 returns an array which is not taken care for. When using a model with defaults set, fetch() puts the array into the model attributes. This has multiple...