When connecting two DIV's with jsPlumb.connect() — supplying it either jQuery
elements of connected steps, or pre-created Endpoints (jsPlumb.addEndpoint()),
— the "type" option
Demonstration: http://jsfiddle.net/sindilevich/5K5Eg
Steps to reproduce:
1. Register connection types "basic" and "selected", using
jsPlumb.registerConnectionTypes()
2. Create two Endpoints (source and target), using jsPlumb.addEnpoint()
3. Create a connection (jsPlumb.connect()) where "source" and "target" options
are the source and target Endpoints respectively, created at Step 2; and supply
it a "type" option of "basic" (the one defined at Step 1).
4. Bind a click event handler on the connection, created at Step 3, and make it
toggle connection types upon click, between "basic" and "selected".
Problems:
1. A connection doesn’t get drawn at all, when supplying the "type" option
(without that option a connection is drawn)
2. Since connection is not drawn, when supplying a "type" option — cannot
click on it to observe toggling of connection type.
Note:
jQuery 1.8.2, jQueryUI 1.9.2, jsPlumb 1.3.16 (jQuery version)
Original issue reported on code.google.com by sindilev...@gmail.com on 6 Dec 2012 at 4:33
Original issue reported on code.google.com by
sindilev...@gmail.com
on 6 Dec 2012 at 4:33