- fixed broken "deleteConnection" JS function after jsPlumb upgrade

This commit is contained in:
Mark Friedrich
2019-06-02 17:02:41 +02:00
parent 6b8eed25ac
commit 355056b9df
2 changed files with 4 additions and 6 deletions

View File

@@ -699,9 +699,8 @@ define([
$(tabContentElement).trigger('pf:removeSystemModules');
}
// remove endpoints and their connections
// do not fire a "connectionDetached" event
map.detachAllConnections(system, {fireEvent: false});
// remove connections do not fire a "connectionDetached" event
map.deleteConnectionsForElement(system, {fireEvent: false});
// destroy tooltip/popover
system.toggleSystemTooltip('destroy', {});

View File

@@ -699,9 +699,8 @@ define([
$(tabContentElement).trigger('pf:removeSystemModules');
}
// remove endpoints and their connections
// do not fire a "connectionDetached" event
map.detachAllConnections(system, {fireEvent: false});
// remove connections do not fire a "connectionDetached" event
map.deleteConnectionsForElement(system, {fireEvent: false});
// destroy tooltip/popover
system.toggleSystemTooltip('destroy', {});