     active =
       index : null
       item  : null
-    for item,i in @items 
+    for item,i in @items
       if item.active
         active.item  = item
         active.index = i

  $input:()->@$().find("input").eq(0)
  getValue:()-> @$input().val()
  setValue:(value)-> @$input().val(value)
  
  bindEvents:()->
    super @$input()


        if suggested is selected
          return yes
    no

  addHiddenInputItem:(name, value)->
    @itemWrapper.addSubView @hiddenInputs[name] = new KDInputView
      type          : "hidden"
      name          : name
      defaultValue  : value

  removeHiddenInputItem:(name)->
    @hiddenInputs[name].remove()

  addSelectedItem:(name,data)->
    {selectedItemClass} = @getOptions()
    @itemWrapper.addSubView itemView = new selectedItemClass
