chore(modeling/behavior): cleanup code
This commit is contained in:
parent
cc142d8fd5
commit
cc2cf3f561
|
@ -21,10 +21,10 @@ function CreateDataObjectBehavior(eventBus, bpmnFactory, moddle) {
|
|||
if (is(shape, 'bpmn:DataObjectReference') && shape.type !== 'label') {
|
||||
|
||||
// create a DataObject every time a DataObjectReference is created
|
||||
var dataObjectShape = bpmnFactory.create('bpmn:DataObject');
|
||||
var dataObject = bpmnFactory.create('bpmn:DataObject');
|
||||
|
||||
// set the reference to the DataObject
|
||||
shape.businessObject.dataObjectRef = dataObjectShape;
|
||||
shape.businessObject.dataObjectRef = dataObject;
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue