Permalink
Browse files

Don't assume string key - Allow for integer keys

  • Loading branch information...
1 parent f73aee0 commit 65e5f266ea78631500c40105a1a48c2d811e42ef @jordanmaguire jordanmaguire committed Oct 6, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/adapters/dom.js
View
2 src/adapters/dom.js
@@ -135,7 +135,7 @@ Lawnchair.adapter('dom', (function() {
},
remove: function (keyOrObj, callback) {
- var key = this.name + '.' + (typeof keyOrObj === 'string' ? keyOrObj : keyOrObj.key)
+ var key = this.name + '.' + ((keyOrObj.key) ? keyOrObj.key : keyOrObj)
this.indexer.del(key)
storage.removeItem(key)
if (callback) this.lambda(callback).call(this)

0 comments on commit 65e5f26

Please sign in to comment.