Skip to content

Commit

Permalink
Revert 85b8d1a: we use inline keys which are incompatible with explic…
Browse files Browse the repository at this point in the history
…it keys
  • Loading branch information
philikon committed Nov 15, 2011
1 parent 48a4aea commit 5be0666
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contacts.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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);
},

Expand Down

0 comments on commit 5be0666

Please sign in to comment.