mirror of
https://github.com/bpmn-io/bpmn-js.git
synced 2025-08-26 12:40:20 +08:00
chore: fix comments
This commit is contained in:
@ -11,7 +11,8 @@ import { hasEventDefinition, isEventSubProcess } from '../../../util/DiUtil';
|
||||
*/
|
||||
|
||||
/**
|
||||
*
|
||||
* Behavior ensuring that only a single compensation activity is connected to a
|
||||
* compensation boundary event when connecting, reconnecting or replacing shapes.
|
||||
*
|
||||
* @param {import('diagram-js/lib/core/EventBus').default} eventBus
|
||||
* @param {import('../Modeling').default} modeling
|
||||
@ -29,7 +30,7 @@ export default function CompensateBoundaryEventBehavior(eventBus, modeling, bpmn
|
||||
this.postExecuted('element.updateProperties', handlePropertiesUpdate, true);
|
||||
|
||||
/**
|
||||
* Given a connection from boundary event is removed, remove the forCompensation property.
|
||||
* Given a connection from boundary event is removed, remove the `isForCompensation` property.
|
||||
*/
|
||||
function handleConnectionRemoval(context) {
|
||||
const source = context.source,
|
||||
@ -41,7 +42,7 @@ export default function CompensateBoundaryEventBehavior(eventBus, modeling, bpmn
|
||||
}
|
||||
|
||||
/**
|
||||
* Add forCompensation property and make sure only a single compensation activity is connected.
|
||||
* Add `isForCompensation` property and make sure only a single compensation activity is connected.
|
||||
*/
|
||||
function handleNewConnection(context) {
|
||||
const source = context.source,
|
||||
|
Reference in New Issue
Block a user