diff --git a/boards/default_src/python/blocks/variables.js b/boards/default_src/python/blocks/variables.js index bf3921f2..edc892ef 100644 --- a/boards/default_src/python/blocks/variables.js +++ b/boards/default_src/python/blocks/variables.js @@ -214,18 +214,15 @@ export const lists_zip = { this.setMutator(new Blockly.icons.MutatorIcon(['lists_zip_item'], this)); this.setTooltip(Blockly.Msg.MIXLY_PYTHON_LISTS_ZIP_TOOLTIP); }, - mutationToDom: function () { var container = document.createElement('mutation'); container.setAttribute('items', this.itemCount_); return container; }, - domToMutation: function (xmlElement) { this.itemCount_ = parseInt(xmlElement.getAttribute('items'), 10); this.updateShape_(); }, - decompose: function (workspace) { var containerBlock = workspace.newBlock('lists_zip_container'); @@ -239,7 +236,6 @@ export const lists_zip = { } return containerBlock; }, - compose: function (containerBlock) { var itemBlock = containerBlock.getInputTargetBlock('STACK'); // Count number of inputs. @@ -260,7 +256,6 @@ export const lists_zip = { } } }, - saveConnections: function (containerBlock) { var itemBlock = containerBlock.getInputTargetBlock('STACK'); var i = 0; @@ -272,7 +267,6 @@ export const lists_zip = { itemBlock.nextConnection.targetBlock(); } }, - updateShape_: function () { // Delete everything. if (this.getInput('EMPTY')) { diff --git a/boards/default_src/python/others/names.js b/boards/default_src/python/others/names.js index 42bfa361..376c96f0 100644 --- a/boards/default_src/python/others/names.js +++ b/boards/default_src/python/others/names.js @@ -117,7 +117,7 @@ class Names { name = varName; } } - var normalized = name.toLowerCase() + '_' + type; + var normalized = name + '_' + type; var isVarType = type == Variables.NAME_TYPE || type == Names.DEVELOPER_VARIABLE_TYPE; diff --git a/boards/default_src/python/others/variables.js b/boards/default_src/python/others/variables.js index a9f8bf99..6fbc6c4a 100644 --- a/boards/default_src/python/others/variables.js +++ b/boards/default_src/python/others/variables.js @@ -56,7 +56,7 @@ Variables.allVariables = function (root) { var varName = blockVariables[y]; // Variable name may be null if the block is only half-built. if (varName) { - variableHash[varName.toLowerCase()] = varName; + variableHash[varName] = varName; } } } @@ -215,7 +215,7 @@ Variables.generateUniqueName = function (workspace) { while (!newName) { var inUse = false; for (var i = 0; i < variableList.length; i++) { - if (variableList[i].toLowerCase() == potName) { + if (variableList[i] == potName) { // This potential name is already used. inUse = true; break;