mirror of
https://github.com/google/blockly.git
synced 2026-01-07 00:50:27 +01:00
Fix some lint errors
This commit is contained in:
@@ -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.
|
||||
}
|
||||
|
||||
@@ -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(
|
||||
|
||||
@@ -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.
|
||||
}
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user