Skip to content

Commit

Permalink
Fix fabric.Group#toObject not serializing children image objects. Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kangax committed Oct 8, 2012
1 parent e6bdcfb commit 8542e3e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions all.js
Original file line number Diff line number Diff line change
Expand Up @@ -8534,8 +8534,7 @@ fabric.util.object.extend(fabric.StaticCanvas.prototype, {
G_vmlCanvasManager.initElement(el);
}

this.setCoords();
el.width = this.getBoundingRectWidth();
el.width = this.getBoundingRectWidth();
el.height = this.getBoundingRectHeight();

fabric.util.wrapElement(el, 'div');
Expand Down Expand Up @@ -11602,7 +11601,7 @@ fabric.util.object.extend(fabric.StaticCanvas.prototype, {
*/
toObject: function() {
return extend(this.callSuper('toObject'), {
objects: invoke(this.objects, 'clone')
objects: invoke(this.objects, 'toObject')
});
},

Expand Down
2 changes: 1 addition & 1 deletion all.min.js

Large diffs are not rendered by default.

Binary file modified all.min.js.gz
Binary file not shown.

0 comments on commit 8542e3e

Please sign in to comment.