Skip to content

Commit

Permalink
fix(): clear canvas from entire object tree
Browse files Browse the repository at this point in the history
in case object is a collection
  • Loading branch information
ShaMan123 committed Apr 4, 2022
1 parent 812f02a commit 053946c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/static_canvas.class.js
Original file line number Diff line number Diff line change
Expand Up @@ -620,7 +620,7 @@
_onObjectRemoved: function(obj) {
this.fire('object:removed', { target: obj });
obj.fire('removed');
delete obj.canvas;
obj._set('canvas', undefined);
},

/**
Expand Down

0 comments on commit 053946c

Please sign in to comment.