mirror of
https://github.com/google/blockly.git
synced 2026-01-11 10:57:07 +01:00
Minor corrections
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user