diff --git a/lib/features/modeling/ElementFactory.js b/lib/features/modeling/ElementFactory.js index ae9477dc..2d2860c4 100644 --- a/lib/features/modeling/ElementFactory.js +++ b/lib/features/modeling/ElementFactory.js @@ -67,7 +67,7 @@ ElementFactory.prototype.create = function(elementType, attrs) { } if (attrs._eventDefinitionType) { - var eventDefinitions = businessObject.get('eventDefinitions') || [], + var eventDefinitions = businessObject.get('eventDefinitions') || [], newEventDefinition = this._moddle.create(attrs._eventDefinitionType); eventDefinitions.push(newEventDefinition);