chore(replace): directly expose #getReplaceOptions

This commit is contained in:
Nico Rehwaldt 2015-10-10 01:35:14 +02:00 committed by pedesen
parent 6f3dadd403
commit 21d68799ad
1 changed files with 4 additions and 5 deletions

View File

@ -221,7 +221,7 @@ function BpmnReplace(bpmnFactory, moddle, popupMenu, replace, selection, modelin
}
function getReplaceOptions(element) {
this.getReplaceOptions = function(element) {
var menuEntries = [];
var businessObject = element.businessObject;
@ -407,10 +407,11 @@ function BpmnReplace(bpmnFactory, moddle, popupMenu, replace, selection, modelin
}
return menuEntries;
}
};
/**
* [function description]
* Open a replace chooser for an element on the specified position.
*
* @param {Object} position
* @param {Object} element
*/
@ -437,8 +438,6 @@ function BpmnReplace(bpmnFactory, moddle, popupMenu, replace, selection, modelin
});
};
this.getReplaceOptions = getReplaceOptions;
this.getLoopEntries = getLoopEntries;
this.getAdHocEntry = getAdHocEntry;