Closed stimg closed 11 years ago
I wanted to use delete so that it resembles the IndexedDB Spec better. We could alias the 'delete' keyword to something like 'erase'. Note that a clear could mean clear the database of all contents.
You could send a pull request and I could add the feature.
Done in e49ff3c
In the code line like
transaction.objectStore('store_name').delete(id)
javascript keyword "delete" on this position will be recognized in some IDE like an error (at least in Eclipse and WebStorm). May be it would be better to use "erase" | "drop" | "clear" etc. instead.