 @remove_neuron_type = (my_id) ->
   rnt = (doc) ->
     index = doc.neuron_types.indexOf(@my_id)
-    
+
     # No need to check for index==-1 because we know it does not (except race condition).
     doc.neuron_types.splice index, 1
     @coll.update doc._id,

@remove_binary_data = (my_id) ->
  rnt = (doc) ->
    index = doc[@field_name].indexOf(@my_id)
    
    # No need to check for index==-1 because we know it does not (except race condition).
    doc[@field_name].splice index, 1
    t2 = {}

@remove_neuropil = (my_id) ->
  rn = (doc) ->
    index = doc.neuropils.indexOf(@my_id)

    # No need to check for index==-1 because we know it does not (except race condition).
    doc.neuropils.splice index, 1
    @coll.update doc._id,
