Skip to content

Commit

Permalink
Fix remove. Document re-added to index so subsequent queries would fa…
Browse files Browse the repository at this point in the history
…il. Set the documents index to undefined so later logic will not add it back
  • Loading branch information
Stuart Strader committed Oct 8, 2011
1 parent 7261392 commit 5c75678
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions nstore.js
Expand Up @@ -235,6 +235,7 @@ var nStore = module.exports = Pattern.extend({
if (self.index.hasOwnProperty(key)) {
self.stale++;
if (value.length === 0) {
value = undefined;
delete self.index[key];
}
}
Expand Down

0 comments on commit 5c75678

Please sign in to comment.