Commit c08d830a authored by techird's avatar techird

fix connect issue

parent 5e20101c
...@@ -3,11 +3,11 @@ ...@@ -3,11 +3,11 @@
utils.extend(KityMinder, { utils.extend(KityMinder, {
_connectProviders: {}, _connectProviders: {},
_defaultConnectProvider: function(node, parent) { _defaultConnectProvider: function(node, parent, connection) {
return [ connection.setPathData([
'M', parent.getLayoutPoint(), 'M', parent.getLayoutPoint(),
'L', node.getLayoutPoint() 'L', node.getLayoutPoint()
]; ]);
}, },
registerConnectProvider: function(layout, provider) { registerConnectProvider: function(layout, provider) {
...@@ -60,7 +60,7 @@ kity.extendClass(Minder, { ...@@ -60,7 +60,7 @@ kity.extendClass(Minder, {
} }
connection.setVisible(true); connection.setVisible(true);
var provider = KityMinder.getConnectProvider(node.getLayout()); var provider = KityMinder.getConnectProvider(parent.getLayout());
provider(node, parent, connection); provider(node, parent, connection);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment