   mouseUp:(e)->
     return  unless @_trackJoint
 
-    targetId = $(e.target).closest(".kddia-object").attr('dia-id')
+    targetId = $(e.target).closest(".kddia-object").attr("dia-id")
     sourceId = @_trackJoint.getDiaId()
     delete @_trackJoint
 

    @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


  drawFakeLine:(options={})->
    {sx,sy,ex,ey} = options

    @cleanup @fakeCanvas

    @fakeContext.beginPath()
    @fakeContext.moveTo sx, sy
    @fakeContext.lineTo ex, ey

    @fakeContext.lineCap     = @getOption "lineCap"
    @fakeContext.lineWidth   = @getOption "lineWidth"
    @fakeContext.strokeStyle = @getOption "lineColorHelper"

    @fakeContext.stroke()

  mouseMove:(e)->
