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?
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 overrideModel.sync
or monkey-patch Backbone to support this?