mirror of
https://github.com/sartography/bpmn-js.git
synced 2025-02-17 03:16:32 +00:00
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…
x
Reference in New Issue
Block a user