dugarab / jsplumb

Automatically exported from code.google.com/p/jsplumb
0 stars 0 forks source link

DetachConnection disable isSource property of endpoint. #353

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
While Deleting connection between two endpoints, the source of that connection 
is no longer having isSource property i.e I am not able to make any new 
connection keeping endpoint as source.
I think isSource propery is set to false after JsPlumb.detach(connection); 
mehod call.

instance.bind("connection", function(info, originalEvent) {
var con=info.connection;
var arr=instance.select({source:con.sourceId,target:con.targetId});
    if(arr.length>1){
            instance.detach(con);
             }
}

Original issue reported on code.google.com by keshav...@gmail.com on 1 Dec 2014 at 10:50