Giter VIP home page Giter VIP logo

Comments (6)

lucian1900 avatar lucian1900 commented on June 2, 2024

Probably. I'll have a look, thanks for letting me know.

from backbone.dualstorage.

danielhunt avatar danielhunt commented on June 2, 2024

I have a related comment/question.

According to the sample code, you state that local:true goes in the collection.
It looks like this isn't true - the only time that variable works is when it's put in the model.

What is the expected behaviour here? Should the collection be the definition point for this (I believe so, at least), or should the model?

from backbone.dualstorage.

lucian1900 avatar lucian1900 commented on June 2, 2024

I would like dualStorage to persist both simple Models and Collections. I think it would indeed be better to only define it in one place for models that have a collection.

from backbone.dualstorage.

danielhunt avatar danielhunt commented on June 2, 2024

I was actually only thinking the exact same thing last night.
I've moved away from DualStorage, because I can't work out what combination of true/false in the model/collection will set up something like that (as, I presume, it hasn't been written yet), and am instead using a custom hack of backbone-localstorage.

I'm looking forward to seeing how this progresses :)

from backbone.dualstorage.

thiagobc avatar thiagobc commented on June 2, 2024

The pull request #10 allows to use both model.remote and options.remote.

The Readme now explains how to use both.

from backbone.dualstorage.

lucian1900 avatar lucian1900 commented on June 2, 2024

Yes, @thiagobc was kind enough to fix this. Thank you!

from backbone.dualstorage.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.