mirror of
https://github.com/sartography/bpmn-js.git
synced 2025-02-18 03:47:22 +00:00
chore: improve snippet for clarity
It did work in the past, albeit with some magic involved (element was retrieve from closure). This one is better, I believe.
This commit is contained in:
parent
8df8e0fcc5
commit
f1da31f05c
@ -154,7 +154,7 @@ ContextPadProvider.prototype.getContextPadEntries = function(element) {
|
||||
connect.start(event, element);
|
||||
}
|
||||
|
||||
function removeElement(e) {
|
||||
function removeElement(e, element) {
|
||||
modeling.removeElements([ element ]);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user