Commit 5d3ff407 authored by Jérome Perrin's avatar Jérome Perrin

Graph Editor: event handling promise where not in the tree of promise, so...

Graph Editor: event handling promise where not in the tree of promise, so errors in those promise where silently ignored
parent 3382cfdb
...@@ -137,14 +137,14 @@ ...@@ -137,14 +137,14 @@
} }
function waitForConnection(gadget) { function waitForConnection(gadget) {
loopJsplumbBind(gadget, 'connection', return loopJsplumbBind(gadget, 'connection',
function (info, originalEvent) { function (info, originalEvent) {
updateConnectionData(gadget, info.connection); updateConnectionData(gadget, info.connection);
}); });
} }
function waitForConnectionDetached(gadget) { function waitForConnectionDetached(gadget) {
loopJsplumbBind(gadget, 'connectionDetached', return loopJsplumbBind(gadget, 'connectionDetached',
function (info, originalEvent) { function (info, originalEvent) {
updateConnectionData(gadget, info.connection, true); updateConnectionData(gadget, info.connection, true);
}); });
...@@ -152,7 +152,7 @@ ...@@ -152,7 +152,7 @@
function waitForConnectionClick(gadget) { function waitForConnectionClick(gadget) {
// TODO: dialog to edit connection properties // TODO: dialog to edit connection properties
loopJsplumbBind(gadget, 'click', function (connection) { return loopJsplumbBind(gadget, 'click', function (connection) {
if (confirm("Delete connection ?")) { if (confirm("Delete connection ?")) {
gadget.props.jsplumb_instance.detach(connection); gadget.props.jsplumb_instance.detach(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