Franklinjagan / jsplumb

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

The jsPlumbConnectionDetached event data does not give the real source endpoint #35

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
When a connection is detached via dragging, the event data will have as 
sourceEndpoint the draggable endpoint instead of the previously connected 
endpoint.

I managed to fix this issue by moving the snippet line 1201 to 1207 just before 
the 'if' line 1199 (in the file jquery.jsPlumb-1.2.3-all.js).

Original issue reported on code.google.com by sylvain....@gmail.com on 20 Oct 2010 at 7:41

GoogleCodeExporter commented 9 years ago
this is fixed in 1.2.4-RC1 now.

if you want to use the dev scripts you need to include 4 scripts:

<script type="text/javascript" 
src="BASE/js/1.2.4/jsPlumb-1.2.4-RC1.js"></script>
<script type="text/javascript" 
src="BASE/js/1.2.4/jsPlumb-defaults-1.2.4-RC1.js"></script>
<script type="text/javascript" 
src="BASE/js/1.2.4/jquery.jsPlumb-1.2.4-RC1.js"></script>
<script type="text/javascript" src="BASE/js/1.2.4/jsBezier-0.1.js"></script>

Original comment by simon.po...@gmail.com on 21 Oct 2010 at 9:53

GoogleCodeExporter commented 9 years ago

Original comment by simon.po...@gmail.com on 27 Nov 2010 at 1:15