   # You can modify this hash to define different comparator types.
   comparatorDefinitions:
     number: (collection, field, sortAsc) ->
-      (model) -> 
+      (model) ->
         val = Number(model.get(field))
         if sortAsc then val else -val
     string: (collection, field, sortAsc) ->

  
  # indicates that a given attribute is actually a Collection. Adds the correct settings to
  # the association hash.
  hasMany:   (name, collection) -> 
    @associations[name] = { model: collection, associationType: 'hasMany' }
    
  # indicates that a given attribute is actually a Model. Adds the correct settings to
  # the association hash.
  hasOne:    (name, model)      -> 
    @associations[name] = { model: model, associationType: 'hasOne' }
  
  # Actually calculate and set the derived fields in the prescribed order as
  # specified by the derivation chain.
  _executeDerivations: ->  
    for derivation in @derivations
      result = {}
      result[derivation.field] = derivation.func(@)

      @grid.render()
    
    # Tell the grid that a model has been removed from a SlickBone.Collection.
    @bind 'remove', (model) =>
      @grid.updateRowCount()
      @grid.render()
    
