 
     @select.on('change', (v) ->
       if t.value
-        selected_model = t.collection.find((model) -> model.get(t.value) is v.value)
+        selected_model = t.collection.find( (model) -> model.get(t.value) is v.value)
       else
-        selected_model = t.collection.find((model) -> model.get(t.label) is v.value)
+        selected_model = t.collection.find( (model) -> model.get(t.label) is v.value)
       
       t.trigger('change', selected_model)
     )

  get_value: -> @select.value
  get_model: ->
    value = @select.value
    if model.get('value')
      @collection.find (model) => model.get('value') is value
    else
      @collection.find (model) => model.get('label') is value

    @set_model_attributes(m)
    select_el = @$el.find('select').first()
    value = if m.get('value') then "value='#{m.get('value')}'" else ""
    select_el.append("<option #{value}>#{m.get('label')}</option>")

    sort_by_name = (a, b) ->
      a.innerHTML.trim().toLowerCase().localeCompare(b.innerHTML.trim().toLowerCase())
    options = select_el.children().get()
    options = options.sort(sort_by_name) if @sort
    for opt in options
      select_el.append(opt)

  set_model_attributes: (model) =>
    model.set('label',model.get(@label))
    model.set('value',model.get(@value)) if @value
    if @default_to and @value and @default_to is model.get(@value)
