 class KDSliderBarHandleView extends KDCustomHTMLView
   constructor:(options = {}, data = {})->
     options.cssClass  = "handle"
-    options.name
+    options.name    or= "defaultHandle"
     data.value       ?= 0
 
     super options, data


    sortRef = (a,b) ->
      return -1 if a.getData().value < b.getData().value
      return 1 if a.getData().value > b.getData().value
      return 0
    @handles.sort sortRef

  drawBar:->

    @parent.drawBar()
    @parent.setLimits()
    @setX "#{@getPosition()}%"
    @parent.emit "valuechange"
      
  getSnappedValue:->
    {interval}  = @parent.getOptions()
