 
 
     store : (cb) ->
-      do (@fileName, @bucket, @dirty, cb) ->
+      do (@fileName, @bucket, @dirty, @deleted, cb) ->
 
         _.each @deleted, (id) -> @dirty[id] = {deleted:true, id:id}
 

    bucket : {}
    dirty : {}
    deleted : []


    obliterate : (cb) ->
      do (@filename, cb) ->

      itm = clone itm if itm?
      itm

    where : (properties, includeDirty = false) ->
      if includeDirty
        _.map _.where(_.extend({}, @bucket, @dirty), properties), (itm) ->clone(itm)
      else
        _.map _.where(@bucket, properties), (itm) -> clone(itm)

    set : (object) ->
      @dirty[object.id] = clone(object)
