Code Monkey home page Code Monkey logo

Comments (8)

marcuswestin avatar marcuswestin commented on August 28, 2024 1

Store.js v2.0 has been released with support for storage events and storage value observations: https://github.com/marcuswestin/store.js#user-content-list-of-all-plugins

If you update you will get this functionality plus a bunch more :)

from store.js.

nbubna avatar nbubna commented on August 28, 2024

FYI, store2 has an extension for storage events that you'd probably like. http://github.com/nbubna/store

It uses store.bind(key, fn) instead of store.on(key, fn), though as it is alpha, i'm open to changing the interface. It also does some normalization of storage events.

from store.js.

aensley avatar aensley commented on August 28, 2024

Thanks. I had no idea that library existed.

from store.js.

nbubna avatar nbubna commented on August 28, 2024

Yeah, i kept it to myself until a few months ago. The store.bind.js extension was one i had high hopes for but was stymied by browser incompatibilities. Now that we're looking at dropping IE.old entirely for ESHA apps, i may be revisiting it. So, i'm VERY interested in any feedback you've got.

from store.js.

aensley avatar aensley commented on August 28, 2024

When the store.bind.js file says this:

Status: ALPHA - useful, but browser support is inconsistent

Does it just mean that browser support for the storage event is inconsistent? If so, that's already a known limitation that I can live with.

from store.js.

nbubna avatar nbubna commented on August 28, 2024

Yes, that's a reference to browser support.

from store.js.

aensley avatar aensley commented on August 28, 2024

Ok, so I'm using store2.js now, and it works perfectly as a drop-in replacement for store.js. Now I'm trying to figure out store.bind(). I'm having a little trouble figuring out exactly how to use it. Is there some documentation for it somewhere?

from store.js.

aensley avatar aensley commented on August 28, 2024

Nevermind. I think I figured it out. I just submitted a pull request to add an unbind() method. We should probably continue our conversation there so we're not cluttering up this repository.

nbubna/store#7

from store.js.

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.