Commit d8c0a2c0 authored by Jérome Perrin's avatar Jérome Perrin Committed by Ioannis Papagiannopoulos

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 57ef4240
......@@ -137,14 +137,14 @@
}
function waitForConnection(gadget) {
loopJsplumbBind(gadget, 'connection',
return loopJsplumbBind(gadget, 'connection',
function (info, originalEvent) {
updateConnectionData(gadget, info.connection);
});
}
function waitForConnectionDetached(gadget) {
loopJsplumbBind(gadget, 'connectionDetached',
return loopJsplumbBind(gadget, 'connectionDetached',
function (info, originalEvent) {
updateConnectionData(gadget, info.connection, true);
});
......@@ -152,7 +152,7 @@
function waitForConnectionClick(gadget) {
// TODO: dialog to edit connection properties
loopJsplumbBind(gadget, 'click', function (connection) {
return loopJsplumbBind(gadget, 'click', function (connection) {
if (confirm("Delete 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