- 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`)

master
Brett Zamir 2020-07-01 12:47:32 +08:00
parent e641cb1a0f
commit 96654c5f64
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}