Skip to content

Commit

Permalink
pass event to functions (#3871)
Browse files Browse the repository at this point in the history
  • Loading branch information
asturur authored Apr 23, 2017
1 parent ff2909e commit 79c21cf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/mixins/canvas_grouping.mixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand All @@ -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 });
Expand Down Expand Up @@ -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();
}
},
Expand Down

0 comments on commit 79c21cf

Please sign in to comment.