     @labels             = []
 
   createHandles:->
-    for k, v of @getData().handles
-      @handles.push @addSubView handle = new KDSliderBarHandleView
-          name : k
-        , value: v.value
+    for name, {value} of @getData().handles
+      @handles.push @addSubView handle = new KDSliderBarHandleView {name}, {value}
 
     sortRef = (a,b) ->
       return -1 if a.getData().value < b.getData().value

class KDSliderBarView extends KDCustomHTMLView
  constructor:(options = {}, data = {})->
    options.cssClass    = KD.utils.curryCssClass "sliderbar-container", options.cssClass
    options.minValue   ?= 0
    options.maxValue   ?= 100

    super options, data

  attachEvents:->
    {maxValue, minValue} = @parent.getOptions()
    windowController     = KD.getSingleton "windowController"

    @on "mousedown", ->
      @parent.bindEvent "mousemove"
