gobstones-blockly 0.28.0 → 0.28.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/htmls/gs-element-blockly.html +1 -1
- data/lib/gobstones/blockly/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c0294fc5ea182f53be3620d1195c8427e580d99dea953e20aaafff3b3c349e3a
|
4
|
+
data.tar.gz: 8a8c53cf6d275e77910e6fb5b32dcb767c57074990045d70ea9cea55df657785
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3cce63fde46daff2d4f5e0cb21acbf2707dd3dc769a0d2ba1a114018eaa5bb17778f1af6cb977bf5c880642f0fe9ab610c83fe0648880ed6e137a6651a31386c
|
7
|
+
data.tar.gz: 63ca2eb9192c94420f433bab4fa4ecfbb55ece67b027910fdeb18f6143a7e4b96b8d4d252f5b0c07f4e8054f98aad98959eaf000e34fbb65410b2ddff2f374f3
|
@@ -5689,7 +5689,7 @@ Blockly.GobstonesLanguage.List = function(block) {
|
|
5689
5689
|
|
5690
5690
|
Blockly.GobstonesLanguage.ForEach = function (block) {
|
5691
5691
|
let body = Blockly.GobstonesLanguage.statementToCode(block, 'block');
|
5692
|
-
var varName = block.getFieldValue('varName');
|
5692
|
+
var varName = formatCallName(block.getFieldValue('varName'), false, Blockly.VARIABLE_CATEGORY_NAME);
|
5693
5693
|
var list = Blockly.GobstonesLanguage.valueToCode(block, 'list', Blockly.GobstonesLanguage.ORDER_NONE) || '';
|
5694
5694
|
|
5695
5695
|
return `foreach ${varName} in ${list} {\n${body}}\n`;
|