From c5e691b88bdd9b57f07e1410aa4ef3ecca27e23e Mon Sep 17 00:00:00 2001 From: Rachel Fenichel Date: Thu, 3 Oct 2019 14:26:42 -0700 Subject: [PATCH] Update workspace_svg.js --- core/workspace_svg.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/workspace_svg.js b/core/workspace_svg.js index edffca58f..fd0de41bb 100644 --- a/core/workspace_svg.js +++ b/core/workspace_svg.js @@ -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; };