Hareeshchandera / jsplumb

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

MaxConnections = -1 does not allow using endpoint as source #109

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. create endpoints with source and target = true and maxConnections = -1.
2. drag a connection from one endpoint to another. try to drag a new connection 
from either endpoint.
3. the old connection is dragged instead of a new one being created

What version of the product are you using? On what browser and OS?
jquery.jsPlumb-1.3.1-all.js
Chrome
Windows 7

Please provide any additional information below.

Changing the function at line 2881 as below solves the issue.

this.connectorSelector = function() {
return (self.connections.length < _maxConnections) || _maxConnections == -1 ? 
null : self.connections[0];
            };

Original issue reported on code.google.com by Nico.De...@gmail.com on 25 Jul 2011 at 4:55

GoogleCodeExporter commented 8 years ago
thanks for the fix.  i've put this in 1.3.2 now.

Original comment by simon.po...@gmail.com on 25 Jul 2011 at 10:38

GoogleCodeExporter commented 8 years ago

Original comment by simon.po...@gmail.com on 11 Aug 2011 at 3:44