diff --git a/generators/javascript.js b/generators/javascript.js index dcd1f146d..f14671899 100644 --- a/generators/javascript.js +++ b/generators/javascript.js @@ -229,7 +229,7 @@ Blockly.JavaScript.scrub_ = function(block, code) { if (!block.outputConnection || !block.outputConnection.targetConnection) { // Collect comment for this block. var comment = block.getCommentText(); - comment = Blockly.utils.wrap(comment, this.COMMENT_WRAP - 3); + comment = Blockly.utils.wrap(comment, Blockly.JavaScript.COMMENT_WRAP - 3); if (comment) { if (block.getProcedureDef) { // Use a comment block for function comments. diff --git a/generators/lua.js b/generators/lua.js index 60a6c0e14..6dbecb666 100644 --- a/generators/lua.js +++ b/generators/lua.js @@ -164,7 +164,7 @@ Blockly.Lua.scrub_ = function(block, code) { if (!block.outputConnection || !block.outputConnection.targetConnection) { // Collect comment for this block. var comment = block.getCommentText(); - comment = Blockly.utils.wrap(comment, this.COMMENT_WRAP - 3); + comment = Blockly.utils.wrap(comment, Blockly.Lua.COMMENT_WRAP - 3); if (comment) { commentCode += Blockly.Lua.prefixLines(comment, '-- ') + '\n'; } diff --git a/generators/php.js b/generators/php.js index d935cda1b..b836c7bc1 100644 --- a/generators/php.js +++ b/generators/php.js @@ -167,7 +167,7 @@ Blockly.PHP.scrub_ = function(block, code) { if (!block.outputConnection || !block.outputConnection.targetConnection) { // Collect comment for this block. var comment = block.getCommentText(); - comment = Blockly.utils.wrap(comment, this.COMMENT_WRAP - 3); + comment = Blockly.utils.wrap(comment, Blockly.PHP.COMMENT_WRAP - 3); if (comment) { commentCode += Blockly.PHP.prefixLines(comment, '// ') + '\n'; } diff --git a/generators/python.js b/generators/python.js index 2e77c0753..082480685 100644 --- a/generators/python.js +++ b/generators/python.js @@ -202,7 +202,7 @@ Blockly.Python.scrub_ = function(block, code) { if (!block.outputConnection || !block.outputConnection.targetConnection) { // Collect comment for this block. var comment = block.getCommentText(); - comment = Blockly.utils.wrap(comment, this.COMMENT_WRAP - 3); + comment = Blockly.utils.wrap(comment, Blockly.Python.COMMENT_WRAP - 3); if (comment) { if (block.getProcedureDef) { // Use a comment block for function comments.