     @_syncDoc.submitOp [
       p: [@collectionId , model.id]
       od: true
-    ], @handleError(model)
+    ], @captureError(model, "destroy")
 
 
 

        throw new Error "Model class #{ Model::constructor.name } is missing `type` attribute."
      @classMap[Model::type] = Model

  handleError: (model) => (err) =>
    if err
      log "Sync error!", err
      @trigger "sharejserror", err, model


    @_syncDoc.submitOp [
      p: [@collectionId , model.id]
      oi: attrs
    ], @captureError(model, "add")


  _sendModelDestroy: (model) ->
