axemclion/IndexedDBShim — pull request #156 by mattjacobsen (2014-08-26 08:04:15+00:00)
Title: IDBbjectStore

The spec states that the user can expect access to IDBObjectStore attributes keyPath, indexNames etc: https://dvcs.w3.org/hg/IndexedDB/raw-file/tip/Overview.html#idl-def-IDBObjectStore.
The workaround method "getStoreProperties" doesn't implement the specification correctly, but it does at least provide roughly the same functionality to those that need it without requiring too many changes to the shim's codebase.
It would be better if these properties were set inside the IDBObjectStore constructor so that a snapshot of the values is immediately available as the spec intends. I tried this but decided that I'm not man enough to face the difficulties arising implementing such a thing (i.e. dealing with waiting for the properties to be loaded before returning from the ctor).