   viewAppended:->
     @setX "#{@getPosition()}%"
     @attachEvents()
-    @snap() if @parent.getOption "snap"+    @snap() if @parent.getOption "snap"
+    
class KDSliderBarHandleView extends KDCustomHTMLView
  constructor:(options = {}, data = {})->
    options.cssClass  = "handle"
    options.name
    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:->
