mirror of
https://github.com/google/blockly.git
synced 2026-01-06 08:30:13 +01:00
Move utilities into own directory.
TODO: There are more functions which may be migrated into dom and string.
This commit is contained in:
@@ -28,6 +28,7 @@
|
||||
goog.provide('Blockly.Lua');
|
||||
|
||||
goog.require('Blockly.Generator');
|
||||
goog.require('Blockly.utils.string');
|
||||
|
||||
|
||||
/**
|
||||
@@ -172,7 +173,7 @@ Blockly.Lua.scrub_ = function(block, code, opt_thisOnly) {
|
||||
if (!block.outputConnection || !block.outputConnection.targetConnection) {
|
||||
// Collect comment for this block.
|
||||
var comment = block.getCommentText();
|
||||
comment = Blockly.utils.wrap(comment, Blockly.Lua.COMMENT_WRAP - 3);
|
||||
comment = Blockly.utils.string.wrap(comment, Blockly.Lua.COMMENT_WRAP - 3);
|
||||
if (comment) {
|
||||
commentCode += Blockly.Lua.prefixLines(comment, '-- ') + '\n';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user