pass event to functions (#3871)

This commit is contained in:
Andrea Bogazzi 2017-04-23 23:58:47 +02:00 committed by Asturur
parent e2facba9d3
commit 8814225bb1

View file

@ -61,7 +61,7 @@
// remove group alltogether if after removal it only contains 1 object
this.discardActiveGroup(e);
// activate last remaining object
this.setActiveObject(activeGroup.item(0));
this.setActiveObject(activeGroup.item(0), e);
return;
}
}
@ -82,7 +82,7 @@
var group = this._createGroup(target);
group.addWithUpdate();
this.setActiveGroup(group);
this.setActiveGroup(group, e);
this._activeObject = null;
this.fire('selection:created', { target: group, e: e });
@ -127,7 +127,7 @@
group.addWithUpdate();
this.setActiveGroup(group, e);
group.saveCoords();
this.fire('selection:created', { target: group });
this.fire('selection:created', { target: group, e: e });
this.renderAll();
}
},