Permalink
Browse files

Merge pull request #45 from peterp/master

Fix for Issue #44 (brianleroux#44) --- great catch thank you!
  • Loading branch information...
brianleroux committed Jul 20, 2011
2 parents 712944b + af5eb18 commit 8087c9ddaba179eb202d7aece458b113d4885c7e
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/adapters/dom.js
View
@@ -61,7 +61,7 @@ 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)
+ 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))

0 comments on commit 8087c9d

Please sign in to comment.