chore(bpmn-replace): use new popup menu api

related to #294
This commit is contained in:
pedesen 2015-06-11 15:21:21 +02:00
parent a04d03da44
commit 402e898e91

View File

@ -143,11 +143,9 @@ function BpmnReplace(bpmnFactory, moddle, popupMenu, replace, selection) {
return {
label: definition.label,
className: definition.className,
action: {
name: definition.actionName,
handler: function() {
replaceElement(element, definition.target);
}
id: definition.actionName,
action: function() {
replaceElement(element, definition.target);
}
};
}
@ -161,7 +159,13 @@ function BpmnReplace(bpmnFactory, moddle, popupMenu, replace, selection) {
this.openChooser = function(position, element) {
var entries = this.getReplaceOptions(element);
popupMenu.open('replace-menu', position, entries);
popupMenu.open(
{
className: 'replace-menu',
position: position,
entries: entries
}
);
};
this.getReplaceOptions = getReplaceOptions;