Permalink
Browse files

Subset of original which updates IndexedDB's ObjectStore to properly …

…take * for values and require KeyType for keys.

This has the potential to introduce compiler type-check errors

R=nicksantos,arthurhsu
DELTA=19 (0 added, 0 deleted, 19 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=6069


git-svn-id: http://closure-library.googlecode.com/svn/trunk@2414 0b95b8e8-c90f-11de-9d4f-f947ee5921c8
  • Loading branch information...
1 parent 1283aef commit 800b0fc5af527644c2cb915910b23a41435e9df3 jmoon@google.com committed Jan 4, 2013
Showing with 12 additions and 12 deletions.
  1. +12 −12 closure/goog/db/objectstore.js
@@ -66,8 +66,8 @@ goog.db.ObjectStore.prototype.getName = function() {
*
* @param {string} fn Function name to call on the object store.
* @param {string} msg Message to give to the error.
- * @param {!Object} value Value to insert into the object store.
- * @param {!Object=} opt_key The key to use.
+ * @param {*} value Value to insert into the object store.
+ * @param {IDBKeyType=} opt_key The key to use.
* @return {!goog.async.Deferred} The resulting deferred request.
* @private
*/
@@ -114,10 +114,10 @@ goog.db.ObjectStore.prototype.insert_ = function(fn, msg, value, opt_key) {
* Adds an object to the object store. Replaces existing objects with the
* same key.
*
- * @param {!Object} value The value to put.
- * @param {!Object=} opt_key The key to use. Cannot be used if the keyPath was
- * specified for the object store. If the keyPath was not specified but
- * autoIncrement was not enabled, it must be used.
+ * @param {*} value The value to put.
+ * @param {IDBKeyType=} opt_key The key to use. Cannot be used if the
+ * keyPath was specified for the object store. If the keyPath was not
+ * specified but autoIncrement was not enabled, it must be used.
* @return {!goog.async.Deferred} The deferred put request.
*/
goog.db.ObjectStore.prototype.put = function(value, opt_key) {
@@ -133,10 +133,10 @@ goog.db.ObjectStore.prototype.put = function(value, opt_key) {
* Adds an object to the object store. Requires that there is no object with
* the same key already present.
*
- * @param {!Object} value The value to add.
- * @param {!Object=} opt_key The key to use. Cannot be used if the keyPath was
- * specified for the object store. If the keyPath was not specified but
- * autoIncrement was not enabled, it must be used.
+ * @param {*} value The value to add.
+ * @param {IDBKeyType=} opt_key The key to use. Cannot be used if the
+ * keyPath was specified for the object store. If the keyPath was not
+ * specified but autoIncrement was not enabled, it must be used.
* @return {!goog.async.Deferred} The deferred add request.
*/
goog.db.ObjectStore.prototype.add = function(value, opt_key) {
@@ -152,7 +152,7 @@ goog.db.ObjectStore.prototype.add = function(value, opt_key) {
* Removes an object from the store. No-op if there is no object present with
* the given key.
*
- * @param {!Object} key The key to remove objects under.
+ * @param {IDBKeyType} key The key to remove objects under.
* @return {!goog.async.Deferred} The deferred remove request.
*/
goog.db.ObjectStore.prototype.remove = function(key) {
@@ -185,7 +185,7 @@ goog.db.ObjectStore.prototype.remove = function(key) {
* Gets an object from the store. If no object is present with that key
* the result is {@code undefined}.
*
- * @param {!Object} key The key to look up.
+ * @param {IDBKeyType} key The key to look up.
* @return {!goog.async.Deferred} The deferred get request.
*/
goog.db.ObjectStore.prototype.get = function(key) {

0 comments on commit 800b0fc

Please sign in to comment.