- 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`)
parent
e641cb1a0f
commit
96654c5f64
|
@ -188,7 +188,8 @@ class Layer {
|
||||||
* @returns {SVGGElement} The layer SVG group that was just removed.
|
* @returns {SVGGElement} The layer SVG group that was just removed.
|
||||||
*/
|
*/
|
||||||
removeGroup () {
|
removeGroup () {
|
||||||
const group = this.group_.remove();
|
const group = this.group_;
|
||||||
|
this.group_.remove();
|
||||||
this.group_ = undefined;
|
this.group_ = undefined;
|
||||||
return group;
|
return group;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue