Skip to content

Commit

Permalink
fixed indexer.del
Browse files Browse the repository at this point in the history
  • Loading branch information
hayksaakian committed Jan 22, 2013
1 parent 0ae09fb commit 219ce37
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/lib/adapters/chrome-storage-sync.js
Expand Up @@ -83,7 +83,7 @@ Lawnchair.adapter('chrome-storage-sync', (function() {

if(Array.isArray(keyOrArray)){
the_index = the_index.filter(function(item) {
return keys.indexOf(item) === -1;
return keyOrArray.indexOf(item) === -1;
});
}else{
the_index.splice(the_index.indexOf(keyOrArray), 1);
Expand Down Expand Up @@ -158,6 +158,7 @@ Lawnchair.adapter('chrome-storage-sync', (function() {
tosave[key] = arr[i];
n_arr.push({key:key, value:arr[i]})
}
console.log(tosave);
storage.set(tosave, function(){
if(chrome.runtime.lastError){
console.log(chrome.runtime.lastError);
Expand Down

0 comments on commit 219ce37

Please sign in to comment.