mirror of
https://github.com/google/blockly.git
synced 2026-01-10 02:17:09 +01:00
Update workspace_svg.js
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user