From 96654c5f6425c1e27042cba15efc477f5118e7ea Mon Sep 17 00:00:00 2001 From: Brett Zamir Date: Wed, 1 Jul 2020 12:47:32 +0800 Subject: [PATCH] - Fix: layer `removeGroup` had been refactored to avoid `removeChild`, but in so doing, lost the element return value (also used by `deleteCurrentLayer` of `draw.js`) --- editor/layer.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/editor/layer.js b/editor/layer.js index 06f876f9..8c814786 100644 --- a/editor/layer.js +++ b/editor/layer.js @@ -188,7 +188,8 @@ class Layer { * @returns {SVGGElement} The layer SVG group that was just removed. */ removeGroup () { - const group = this.group_.remove(); + const group = this.group_; + this.group_.remove(); this.group_ = undefined; return group; }