- 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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user