Hareeshchandera / jsplumb

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

maketarget and maxconnections #227

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hi,

I can't get maxconnections working with maketarget. Is this supported?

This worked in 1.3.4
http://jsfiddle.net/c9v2Z/
But gives now a clone error. 
"jsPlumb function failed : TypeError: _endpoint.clone is not a function"

I tried this, but maxconnections are ignored.
http://jsfiddle.net/HGYQ7/

Thx!

using jsplumb 1.3.7, Firefox 11

Original issue reported on code.google.com by j.verdur...@2bmore.nl on 22 Mar 2012 at 1:03

GoogleCodeExporter commented 8 years ago
There was a change in 1.3.6. From the changelog:

http://code.google.com/p/jsplumb/source/browse/trunk/changelog.txt

"the second argument to makeSource and makeTarget no longer requires the nested 
'endpoint' parameter - they take the exact same object that you would pass to 
the second argument to addEndpoint.  Of course that object can itself have an 
'endpoint' parameter, which is used to specify the type of endpoint (Dot, 
Rectangle etc) - and that was kind of confusing, and yet another reason to 
unify the API a little."

try this:

http://jsfiddle.net/c9v2Z/1/

Original comment by simon.po...@gmail.com on 22 Mar 2012 at 9:09

GoogleCodeExporter commented 8 years ago
Hi,

Thx for your reply. I tried the jsfiddle, but I can still drag more than one 
connection on the red target? The  maxConnections is set on 1. (IE9, Firefox 11)

Original comment by j.verdur...@2bmore.nl on 28 Mar 2012 at 8:27

GoogleCodeExporter commented 8 years ago
yes that bit is still outstanding. i meant that you should no longer see that 
clone error in your jsfiddle.

Original comment by simon.po...@gmail.com on 1 Apr 2012 at 12:18

GoogleCodeExporter commented 8 years ago
fixed in 1.3.8

Original comment by simon.po...@gmail.com on 1 Apr 2012 at 12:40

GoogleCodeExporter commented 8 years ago
1.3.8 was released today.

Original comment by simon.po...@gmail.com on 1 Apr 2012 at 7:52

GoogleCodeExporter commented 8 years ago
Great! I will test it today

Original comment by j.verdur...@2bmore.nl on 2 Apr 2012 at 11:45

GoogleCodeExporter commented 8 years ago
I can confirm this is fixed. Thanks. 

Original comment by j.verdur...@2bmore.nl on 3 Apr 2012 at 2:34