bredele / datastore

:hamster: Bloat free and flexible interface for data store and database access.
101 stars 9 forks source link

reset array #3

Closed bredele closed 10 years ago

bredele commented 10 years ago

we emit deleted events with index on previous store data. ex: old data: 7 new data: 4

deleted events: 5 6 7

Should we emit the actual index?

bredele commented 10 years ago

I added a second argument in the deleted event which is the index of the removed item in the store data.