todomvc-backbone-es6
todomvc-backbone-es6 copied to clipboard
Generators
trafficstars
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?
I would be pretty interested in what that might look like. If the implementation was < LOC than backbone.localStorage we could certainly use it :)
:+1: