coresmart / persistencejs

persistence.js is an asynchronous Javascript database mapper library. You can use it in the browser, as well on the server (and you can share data models between them).
http://persistencejs.org
1.73k stars 240 forks source link

Fixed bug of persistence.flush(), to remove objects. #30

Closed mhayashi closed 13 years ago

mhayashi commented 13 years ago

Hi,

I found a in-memory store bug not to remove objects when I called persistence.remove(). It was because persistence.flush() in presistence.store.memory.js didn't remove trackedObjects.