chore(modeling/behavior): cleanup code

This commit is contained in:
Nico Rehwaldt 2016-01-25 21:17:27 +01:00 committed by pedesen
parent cc142d8fd5
commit cc2cf3f561
1 changed files with 3 additions and 3 deletions

View File

@ -18,13 +18,13 @@ function CreateDataObjectBehavior(eventBus, bpmnFactory, moddle) {
var context = event.context, var context = event.context,
shape = context.shape; shape = context.shape;
if(is(shape, 'bpmn:DataObjectReference') && shape.type !== 'label') { if (is(shape, 'bpmn:DataObjectReference') && shape.type !== 'label') {
// create a DataObject every time a DataObjectReference is created // 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 // set the reference to the DataObject
shape.businessObject.dataObjectRef = dataObjectShape; shape.businessObject.dataObjectRef = dataObject;
} }
}); });