tastejs / todomvc-backbone-es6

Backbone TodoMVC rewritten using ES6
http://addyosmani.github.io/todomvc-backbone-es6
234 stars 45 forks source link

Generators #10

Open passy opened 11 years ago

passy commented 11 years ago

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 commented 11 years ago

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 commented 10 years ago

:+1: