Permalink
Browse files

Revert 85b8d1a: we use inline keys which are incompatible with explic…

…it keys
  • Loading branch information...
1 parent 48a4aea commit 5be06661c7ebfa3758bb6569dd492b8475e719a0 @philikon philikon committed Nov 15, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 contacts.js
View
@@ -352,7 +352,7 @@ Contacts.prototype = {
//TODO ensure default values exist
debug("Going to add", contact.id);
this.newTxn(IDBTransaction.READ_WRITE, function (txn, store) {
- store.add(contact, contact.id).onsuccess = function (event) {
+ store.add(contact).onsuccess = function (event) {
let id = event.target.result;
debug("Successfully added", id);
store.get(id).onsuccess = function (event) {
@@ -368,7 +368,7 @@ Contacts.prototype = {
// probably want to verify that contact.id actually is in the store.
this.newTxn(IDBTransaction.READ_WRITE, function (txn, store) {
debug("Going to update", contact.id);
- store.put(contact, contact.id);
+ store.put(contact);
}, successCb, errorCb);
},

0 comments on commit 5be0666

Please sign in to comment.