Commit 7a5580b3 authored by Neil Fraser's avatar Neil Fraser

Minor lints from PR 150.

parent 05bdd590
......@@ -110,14 +110,12 @@ Blockly.Blocks['lists_create_with'] = {
var itemBlock = containerBlock.getInputTargetBlock('STACK');
// Count number of inputs.
var connections = [];
var i = 0;
while (itemBlock) {
connections[i] = itemBlock.valueConnection_;
connections.push(itemBlock.valueConnection_);
itemBlock = itemBlock.nextConnection &&
itemBlock.nextConnection.targetBlock();
i++;
}
this.itemCount_ = i;
this.itemCount_ = connections.length;
this.updateShape_();
// Reconnect any child blocks.
for (var i = 0; i < this.itemCount_; i++) {
......
......@@ -127,14 +127,12 @@ Blockly.Blocks['text_join'] = {
var itemBlock = containerBlock.getInputTargetBlock('STACK');
// Count number of inputs.
var connections = [];
var i = 0;
while (itemBlock) {
connections[i] = itemBlock.valueConnection_;
connections.push(itemBlock.valueConnection_);
itemBlock = itemBlock.nextConnection &&
itemBlock.nextConnection.targetBlock();
i++;
}
this.itemCount_ = i;
this.itemCount_ = connections.length;
this.updateShape_();
// Reconnect any child blocks.
for (var i = 0; i < this.itemCount_; i++) {
......
......@@ -23,10 +23,10 @@
"jshint": "latest"
},
"jshintConfig": {
"unused": true,
"undef": true,
"globalstrict": true,
"sub": true,
"predef": ["Blockly", "goog", "window", "document", "soy", "XMLHttpRequest"]
"globalstrict": true,
"predef": ["Blockly", "goog", "window", "document", "soy", "XMLHttpRequest"],
"sub": true,
"undef": true,
"unused": true
}
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment