Generated JS helper functions should be camelCase.

Complying with Google style guide.
This commit is contained in:
Neil Fraser
2016-06-01 17:18:02 -07:00
parent 0e29021b31
commit 32192850ad
5 changed files with 23 additions and 23 deletions

View File

@@ -196,9 +196,9 @@ Blockly.JavaScript.scrub_ = function(block, code) {
}
// Collect comments for all value arguments.
// Don't collect comments for nested statements.
for (var x = 0; x < block.inputList.length; x++) {
if (block.inputList[x].type == Blockly.INPUT_VALUE) {
var childBlock = block.inputList[x].connection.targetBlock();
for (var i = 0; i < block.inputList.length; i++) {
if (block.inputList[i].type == Blockly.INPUT_VALUE) {
var childBlock = block.inputList[i].connection.targetBlock();
if (childBlock) {
var comment = Blockly.JavaScript.allNestedComments(childBlock);
if (comment) {