mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-05-17 10:01:08 +00:00
Discard active group when clearing canvas
This commit is contained in:
parent
ddacd57cc8
commit
85c9b34d04
1 changed files with 3 additions and 0 deletions
|
|
@ -503,6 +503,9 @@
|
|||
*/
|
||||
clear: function () {
|
||||
this._objects.length = 0;
|
||||
if (this.discardActiveGroup) {
|
||||
this.discardActiveGroup();
|
||||
}
|
||||
this.clearContext(this.contextContainer);
|
||||
if (this.contextTop) {
|
||||
this.clearContext(this.contextTop);
|
||||
|
|
|
|||
Loading…
Reference in a new issue