Skip to content

Commit

Permalink
bugfix for group.fromObject (#4111)
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanhayden authored and asturur committed Jul 21, 2017
1 parent 0d1019f commit 9137673
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/shapes/group.class.js
Original file line number Diff line number Diff line change
Expand Up @@ -563,8 +563,9 @@
*/
fabric.Group.fromObject = function(object, callback) {
fabric.util.enlivenObjects(object.objects, function(enlivenedObjects) {
delete object.objects;
callback && callback(new fabric.Group(enlivenedObjects, object, true));
var options = fabric.util.object.clone(object, true);
delete options.objects;
callback && callback(new fabric.Group(enlivenedObjects, options, true));
});
};

Expand Down

0 comments on commit 9137673

Please sign in to comment.