From 5d95b4bedb9d2d1b8dd4589e93b6b19e2f5d1135 Mon Sep 17 00:00:00 2001 From: Paul Date: Mon, 14 May 2018 11:42:26 +0100 Subject: [PATCH 1/2] Fix to issue #55 - Fixes the problem with connectors when using operatorTypes --- jquery.flowchart.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jquery.flowchart.js b/jquery.flowchart.js index 5c6ef03..ae2607c 100644 --- a/jquery.flowchart.js +++ b/jquery.flowchart.js @@ -253,7 +253,7 @@ $(function () { }, _autoCreateSubConnector: function (operator, connector, connectorType, subConnector) { - var connectorInfos = this.data.operators[operator].properties[connectorType][connector]; + var connectorInfos = this.data.operators[operator].internal.properties[connectorType][connector]; if (connectorInfos.multiple) { var fromFullElement = this.data.operators[operator].internal.els; var nbFromConnectors = this.data.operators[operator].internal.els.connectors[connector].length; From 4f5809e167fa7f4098e651ced198affc85eb5d03 Mon Sep 17 00:00:00 2001 From: Paul Date: Tue, 15 May 2018 11:01:39 +0100 Subject: [PATCH 2/2] Addition to issue #55 - delete It turns out there is also the same problem on link delete - fixed here --- jquery.flowchart.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jquery.flowchart.js b/jquery.flowchart.js index ae2607c..714473d 100644 --- a/jquery.flowchart.js +++ b/jquery.flowchart.js @@ -911,7 +911,7 @@ $(function () { }, _cleanMultipleConnectors: function (operator, connector, linkFromTo) { - if (!this.data.operators[operator].properties[linkFromTo == 'from' ? 'outputs' : 'inputs'][connector].multiple) { + if (!this.data.operators[operator].internal.properties[linkFromTo == 'from' ? 'outputs' : 'inputs'][connector].multiple) { return; }