 
     @highlightLines()
 
-  connect:(source, target)->
-    return  unless source and target
-    return  if source.dia?.id is target.dia?.id
-
-    if not @allowedToConnect source, target
-      return warn """Connection from #{source.dia.constructor.name}
-                     to #{target.dia.constructor.name} is not allowed!"""
-
-    @connections.push {source, target}
-    @highlightLines target.dia
-
-  allowedToConnect:(source, target)->
+  allowedToConnect = (source, target)->
+
+    return no  unless source and target
+    return no  if source.dia?.id is target.dia?.id
+
     for i in [0..1]
       if source.dia.allowedConnections? and \
          Object.keys(source.dia.allowedConnections).length > 0


    return  unless targetId

    log "Connect #{sourceId} to #{targetId}"
    source = @getDia sourceId
    target = @getDia targetId
    target.joint = @guessJoint target, source  unless target.joint

  diaAdded:(container, diaObj)->
    diaObj.on "JointRequestsLine",   @bound "handleLineRequest"
    diaObj.on "DragInAction",        => @highlightLines diaObj
    diaObj.on "RemoveMyConnections", => @disconnectAllConnections diaObj

  addContainer:(container, pos = {})->
    @addSubView container
