Update workspace_svg.js

This commit is contained in:
Rachel Fenichel
2019-10-03 14:26:42 -07:00
committed by GitHub
parent 78dc82f7ac
commit c5e691b88b

View File

@@ -947,9 +947,9 @@ Blockly.WorkspaceSvg.prototype.getParentSvg = function() {
while (element) {
if (element.tagName == 'svg') {
this.cachedParentSvg_ = element;
return /** @type {!SVGElement} */ (element);
return element;
}
element = element.parentNode;
element = /** @type {!SVGElement} */ (element.parentNode);
}
return null;
};