mirror of
https://github.com/google/blockly.git
synced 2026-01-07 17:10:11 +01:00
chore: Use ES6 template strings in CSS and code generators (#5902)
* Unindent CSS, save 3 kb of code. * Convert generator functions to template strings. This resolves #5761.
This commit is contained in:
@@ -28,8 +28,7 @@ Lua['controls_if'] = function(block) {
|
||||
let branchCode = Lua.statementToCode(block, 'DO' + n);
|
||||
if (Lua.STATEMENT_SUFFIX) {
|
||||
branchCode = Lua.prefixLines(
|
||||
Lua.injectId(Lua.STATEMENT_SUFFIX, block), Lua.INDENT) +
|
||||
branchCode;
|
||||
Lua.injectId(Lua.STATEMENT_SUFFIX, block), Lua.INDENT) + branchCode;
|
||||
}
|
||||
code +=
|
||||
(n > 0 ? 'else' : '') + 'if ' + conditionCode + ' then\n' + branchCode;
|
||||
|
||||
Reference in New Issue
Block a user