mirror of
https://github.com/sartography/bpmn-js.git
synced 2025-02-25 15:15:30 +00:00
fix(attaching): correct api changes from diagram-js
This commit is contained in:
parent
88f91d342b
commit
9a79330d5b
@ -68,14 +68,14 @@ BpmnRules.prototype.init = function() {
|
||||
|
||||
this.addRule('shapes.move', function(context) {
|
||||
|
||||
var target = context.newParent,
|
||||
var target = context.target,
|
||||
shapes = context.shapes;
|
||||
|
||||
return canMove(shapes, target);
|
||||
});
|
||||
|
||||
this.addRule([ 'shape.create', 'shape.append' ], function(context) {
|
||||
var target = context.parent,
|
||||
var target = context.target,
|
||||
shape = context.shape,
|
||||
source = context.source;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user