From c74830231c81722665a414301a56dced1d017bd5 Mon Sep 17 00:00:00 2001 From: Neil Fraser Date: Fri, 12 Oct 2018 05:54:45 -0700 Subject: [PATCH] Minor corrections --- core/xml.js | 2 +- core/xml_utils.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/xml.js b/core/xml.js index 2ddd08480..6ce6e3da4 100644 --- a/core/xml.js +++ b/core/xml.js @@ -196,7 +196,7 @@ Blockly.Xml.blockToDom = function(block, opt_noId) { var commentText = block.getCommentText(); if (commentText) { var commentElement = Blockly.Xml.utils.createElement('comment'); - containerElement.appendChild(Blockly.Xml.utils.createTextNode(commentText)); + commentElement.appendChild(Blockly.Xml.utils.createTextNode(commentText)); if (typeof block.comment == 'object') { commentElement.setAttribute('pinned', block.comment.isVisible()); var hw = block.comment.getBubbleSize(); diff --git a/core/xml_utils.js b/core/xml_utils.js index 1dea3c83d..9281b087e 100644 --- a/core/xml_utils.js +++ b/core/xml_utils.js @@ -33,7 +33,7 @@ goog.provide('Blockly.Xml.utils'); /** * Create DOM element for XML. - * @param {tagName} name Name of DOM element. + * @param {string} tagName Name of DOM element. * @return {!Element} New DOM element. */ Blockly.Xml.utils.createElement = function(tagName) {