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…
Reference in New Issue