creationix/nstore — pull request #30 by stuarts (2011-10-08 18:47:07+00:00)
Title: Fix remove. 

The document was being deleted off of the index on the checkQueue update.

But the iterator wasn't being nulled so `if(value !== undefined)` wasn't preventing the document's index from being re-set on `self.index` and subsequent query.all's were failing.

I just added a `value = undefined` to the delete logic.