stevenrskelton / sortable-table

Polymer Web Component that generates a sortable <table> from inlined or AJAX JSON, JSON5, and arrays.
https://stevenrskelton.github.io/sortable-table/
MIT License
196 stars 37 forks source link

Retrieve IDBObjectStore by objectStore name rather than database name #36

Closed ankushnarula closed 9 years ago

ankushnarula commented 9 years ago

When retrieving an IDBObjectStore, the IDBDatabase.transaction method should take the name/names of one or more objectStores rather than the name of the parent database as the first parameter.

Reference: https://developer.mozilla.org/en-US/docs/Web/API/IDBDatabase.transaction#Parameters and here: https://msdn.microsoft.com/en-us/library/ie/hh772509(v=vs.85).aspx

NOTE: The Mozilla example code makes this confusing since it uses the same name ("todoList") for both the database and for the objectStore