todomvc-backbone-es6 icon indicating copy to clipboard operation
todomvc-backbone-es6 copied to clipboard

Generators

Open passy opened this issue 11 years ago • 2 comments

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?

passy avatar Aug 10 '13 21:08 passy

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

addyosmani avatar Aug 12 '13 22:08 addyosmani

:+1:

sindresorhus avatar Mar 28 '14 18:03 sindresorhus