mirror of
https://github.com/bpmn-io/bpmn-js.git
synced 2025-08-14 11:11:14 +08:00
feat(ordering): add sequence flow + association to correct parent
* remove ModelUtil#getSharedParent because we do proper ordering via BpmnOrderingProvider now. * Cherio! Related to #316
This commit is contained in:
@ -47,8 +47,6 @@ Modeling.prototype.updateLabel = function(element, newLabel) {
|
||||
};
|
||||
|
||||
|
||||
var getSharedParent = require('./ModelingUtil').getSharedParent;
|
||||
|
||||
Modeling.prototype.connect = function(source, target, attrs) {
|
||||
|
||||
var bpmnRules = this._bpmnRules;
|
||||
@ -70,7 +68,7 @@ Modeling.prototype.connect = function(source, target, attrs) {
|
||||
}
|
||||
}
|
||||
|
||||
return this.createConnection(source, target, attrs, getSharedParent(source, target));
|
||||
return this.createConnection(source, target, attrs, source.parent);
|
||||
};
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user