mirror of
https://github.com/google/blockly.git
synced 2025-12-16 06:10:12 +01:00
Minor lints from PR 150.
This commit is contained in:
@@ -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++) {
|
||||
|
||||
10
package.json
10
package.json
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user