Fix some lint errors

This commit is contained in:
Rachel Fenichel
2017-02-03 14:01:18 -08:00
parent 1a1646a5c4
commit 4152542c2f
14 changed files with 27 additions and 28 deletions

View File

@@ -256,7 +256,7 @@ Blockly.Blocks['controls_flow_statements'] = {
* @param {!Blockly.Events.Abstract} e Change event.
* @this Blockly.Block
*/
onchange: function(e) {
onchange: function(/* e */) {
if (!this.workspace.isDragging || this.workspace.isDragging()) {
return; // Don't change state at the start of a drag.
}

View File

@@ -412,7 +412,7 @@ Blockly.Blocks.math.TOOLTIPS_BY_OP_ = {
'MEDIAN': '%{BKY_MATH_ONLIST_TOOLTIP_MEDIAN}',
'MODE': '%{BKY_MATH_ONLIST_TOOLTIP_MODE}',
'STD_DEV': '%{BKY_MATH_ONLIST_TOOLTIP_STD_DEV}',
'RANDOM': '%{BKY_MATH_ONLIST_TOOLTIP_RANDOM}',
'RANDOM': '%{BKY_MATH_ONLIST_TOOLTIP_RANDOM}'
};
Blockly.Extensions.register("math_op_tooltip",
Blockly.Extensions.buildTooltipForDropdown(

View File

@@ -120,7 +120,7 @@ Blockly.Blocks['procedures_defnoreturn'] = {
},
/**
* Create XML to represent the argument inputs.
* @param {=boolean} opt_paramIds If true include the IDs of the parameter
* @param {boolean=} opt_paramIds If true include the IDs of the parameter
* quarks. Used by Blockly.Procedures.mutateCallers for reconnection.
* @return {!Element} XML storage element.
* @this Blockly.Block
@@ -679,6 +679,7 @@ Blockly.Blocks['procedures_callnoreturn'] = {
/**
* Procedure calls cannot exist without the corresponding procedure
* definition. Enforce this link whenever an event is fired.
* @param {!Blockly.Events.Abstract} event Change event.
* @this Blockly.Block
*/
onchange: function(event) {
@@ -840,7 +841,7 @@ Blockly.Blocks['procedures_ifreturn'] = {
* @param {!Blockly.Events.Abstract} e Change event.
* @this Blockly.Block
*/
onchange: function(e) {
onchange: function(/* e */) {
if (!this.workspace.isDragging || this.workspace.isDragging()) {
return; // Don't change state at the start of a drag.
}

View File

@@ -742,7 +742,7 @@ Blockly.Blocks['text_replace'] = {
"type": "input_value",
"name": "TEXT",
"check": "String"
},
}
],
"output": "String",
"inputsInline": true,
@@ -766,7 +766,7 @@ Blockly.Blocks['text_reverse'] = {
"type": "input_value",
"name": "TEXT",
"check": "String"
},
}
],
"output": "String",
"inputsInline": true,