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:
Nico Rehwaldt 2021-11-05 18:10:31 +01:00 committed by Beatriz Mendes
parent 8df8e0fcc5
commit f1da31f05c
1 changed files with 1 additions and 1 deletions

View File

@ -154,7 +154,7 @@ ContextPadProvider.prototype.getContextPadEntries = function(element) {
connect.start(event, element);
}
function removeElement(e) {
function removeElement(e, element) {
modeling.removeElements([ element ]);
}