 
   getSearchResultsEl: -> @getValEl().find('.treema-search-results')
   getSelectedResultEl: -> @getValEl().find('.treema-search-selected')
-  
+
   modelToString: (model) -> model.get('name')
 
   formatDocument: (docOrModel) ->

    input = valEl.find('input')
    input.focus().keyup @search
    input.attr('placeholder', @formatDocument(@data)) if @data
    
  buildSearchURL: (term) -> "#{@url}?term=#{term}&project=true"

  search: =>

    return if @data?
    selected = @getSelectedResultEl()
    return not selected.length

class LevelComponentReferenceNode extends LatestVersionReferenceNode
  # HACK: this list of properties is needed by the thang components edit view and config views.
  # need a better way to specify this, or keep the search models from bleeding into those
