Minor corrections

This commit is contained in:
Neil Fraser
2018-10-12 05:54:45 -07:00
committed by Neil Fraser
parent dddb94aedd
commit c74830231c
2 changed files with 2 additions and 2 deletions

View File

@@ -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();

View File

@@ -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) {