Hareeshchandera / jsplumb

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

add jsPlumb.detach(sourceEndpoint, targetEndpoint) method #19

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
detach is window-specific and therefore not much use for people who are using 
the Endpoint-centric API.  this method will be useful.

Original issue reported on code.google.com by simon.po...@gmail.com on 30 Aug 2010 at 12:21

GoogleCodeExporter commented 8 years ago

Original comment by simon.po...@gmail.com on 30 Aug 2010 at 12:22

GoogleCodeExporter commented 8 years ago
this will actually require reworking the detach method completely, to make it 
behave more like the "connect" method and support a bunch of different 
arguments.

Original comment by simon.po...@gmail.com on 5 Sep 2010 at 6:24

GoogleCodeExporter commented 8 years ago
detach has been updated to support a one-arg version, taking options like you 
would pass to jsPlumb.connect:

jsPlumb.detach({source:"..", target:"..."});   // element wide
jsPlumb.detach({sourceEndpoint:e1, targetEndpoint:e2});  // using endpoints
jsPlumb.detach({uuids:["abcdefg","hijklmn"]});           // using uuids

this is in 1.2.2-RC1 now.

Original comment by simon.po...@gmail.com on 5 Sep 2010 at 7:09

GoogleCodeExporter commented 8 years ago

Original comment by simon.po...@gmail.com on 9 Oct 2010 at 11:49