     @activeDias  = []
 
   diaAdded:(container, diaObj)->
-    diaObj.on 'JointRequestsLine', @bound "handleLineRequest"
-    diaObj.on 'DragInAction',   => @setActiveDia diaObj
+    diaObj.on "JointRequestsLine", @bound "handleLineRequest"
+    diaObj.on "DragInAction",   => @setActiveDia diaObj
 
   addContainer:(container, pos = {})->
     @addSubView container

    @connect source, target  if target.joint

  guessJoint:(target, source)->
    return 'left'  if source.joint is 'right' and target.dia.joints.left?
    return 'right' if source.joint is 'left'  and target.dia.joints.right?

  getDia:(id)->
    parts = ( id.match /dia\-((.*)\-joint\-(.*)|(.*))/ ).filter (m)->return !!m

class KDDiaScene extends JView

  constructor:(options = {}, data)->

    options.cssClass = KD.utils.curry "kddia-scene", options.cssClass
    options.bind     = KD.utils.curry "mousemove",   options.bind

    options.lineCap         or= "round"
    options.lineWidth        ?= 2
    options.lineColor       or= "#ccc"
    options.lineColorActive or= "orange"
    options.lineColorHelper or= "green"
    options.lineDashes       ?= []
    options.curveDistance    ?= 50

    super

