Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

src/adapters/dom.js

  • Loading branch information...
commit 5b158a08e3ba370f6ede0e04d1429a1f1b9599a6 2 parents e877941 + 8087c9d
@brianleroux brianleroux authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/adapters/dom.js
View
4 src/adapters/dom.js
@@ -62,8 +62,8 @@ Lawnchair.adapter('dom', {
save: function (obj, callback) {
var key = obj.key || this.uuid()
// if the key is not in the index push it on
- if (!this.indexer.find(key)) this.indexer.add(key)
- // now we kil the key and use it in the store colleciton
+ if (this.indexer.find(key) === false) this.indexer.add(key)
+ // now we kil the key and use it in the store colleciton
delete obj.key;
this.storage.setItem(key, JSON.stringify(obj))
if (callback) {
Please sign in to comment.
Something went wrong with that request. Please try again.