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

This commit is contained in:
Brett Zamir
2020-07-01 12:47:32 +08:00
parent e641cb1a0f
commit 96654c5f64

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