brianleroux/lawnchair — pull request #79 by krestenkrab (2011-12-14 09:16:30+00:00)
Title: Improvements for indexed-db

This pull request does a couple of things for indexed-db

1. Add optional 2nd argument done_callback to `each`
2. Allow an adapter to implement `async_each`, which lets the adapter implement the `each` logic without having to extract the list of keys *first*, and *then* iterate through them.
3. Implement the `async_each` for the indexed-db adapter
4. Provide READ_ONLY, READ_WRITE and VERSION_CHANGE as inline-constants in the indexed-db adapter, to avoid dependency on the global `webkitIDBTransaction` (which sounds very webkit dependent)