fix(attaching): correct api changes from diagram-js

This commit is contained in:
Ricardo Matias 2015-07-03 16:00:41 +02:00
parent 88f91d342b
commit 9a79330d5b
1 changed files with 2 additions and 2 deletions

View File

@ -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;