FIX: correctly fetch() content for Backbone.Model Objects #48

Closed
wants to merge 1 commit into
from

Conversation

Projects
None yet
2 participants

This lib did not correctly fetch()/ 'read'/'GET'
from local storage for Backbone.Model objects after page refresh.

It does work in the tests however because the tests
do not refresh the page and load once again from localStorage.
The tests rely on the in memory version of the object to return the correct result.

In my personal test this worked for Backbone.Model, but I did
not test Backbone.Collection Objects.

@jDavidnet jDavidnet Now correctly fetches for Backbone.Model
This lib did not correctly fetch()/ 'read'/'GET'
from local storage for Backbone.Model objects.

It does work in the tests however because the tests
do not refresh the page and load once again from localStorage.

in my personal test this worked for Backbone.Model, but I did
not test Backbone.Collection Objects.
3a9fac7
Owner

jeromegn commented Nov 14, 2012

The tests need to pass before I can merge this in.

I'll have to look at this in the next few days. It's working for me right now.

There is another problem with destroy on Backbone.Modal

jeromegn closed this Jan 12, 2013

I have been using this for months without issue. If you don't use this patch then you can only use this adapter on a collection, and it does not work on a model.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment