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…
Reference in New Issue