Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generators #10

Open
passy opened this issue Aug 10, 2013 · 2 comments
Open

Generators #10

passy opened this issue Aug 10, 2013 · 2 comments

Comments

@passy
Copy link
Member

passy commented Aug 10, 2013

A thought that just crossed my mind: Generators would be perfect for reading todo items from localStorage since all of them are stored under separate keys and each access is obviously blocking.

If we replaced backbone.localStorage.js with something of our own that is generator-capable, could we override Model.sync or monkey-patch Backbone to support this?

@addyosmani
Copy link
Member

I would be pretty interested in what that might look like. If the implementation was < LOC than backbone.localStorage we could certainly use it :)

@sindresorhus
Copy link
Member

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants