 
   click:(e)->
     return if e.target isnt e.currentTarget
-    @setActiveDia()
+    @highlightLines()
 
   mouseMove:(e)->
     return  unless @_trackJoint

                     to #{target.dia.constructor.name} is not allowed!"""

    @connections.push {source, target}
    @setActiveDia target.dia

  allowedToConnect:(source, target)->
    for i in [0..1]

      break  if dia = container.dias[objId]
    return {dia, joint, container}

  highlightLines:(dia=[], update=yes)->
    if not Array.isArray dia then dia = [dia]
    @activeDias = dia
    joint.off 'DeleteRequested'      for joint in @activeJoints
    container.emit 'UnhighlightDias' for container in @containers
    @activeJoints = []
    @updateScene()  if update
    return  unless @activeDias.length is 1

