diff --git a/core/field.js b/core/field.js index 3ad8d3cfb..64616d3cb 100644 --- a/core/field.js +++ b/core/field.js @@ -830,10 +830,10 @@ Blockly.Field.prototype.doValueUpdate_ = function(newValue) { * Used to notify the field an invalid value was input. Can be overidden by * subclasses, see FieldTextInput. * No-op by default. - * @param {*} _newValue The input value that was determined to be invalid. + * @param {*} _invalidValue The input value that was determined to be invalid. * @protected */ -Blockly.Field.prototype.doValueInvalid_ = function(_newValue) { +Blockly.Field.prototype.doValueInvalid_ = function(_invalidValue) { // NOP }; diff --git a/core/field_textinput.js b/core/field_textinput.js index 495d7b447..bb68cee10 100644 --- a/core/field_textinput.js +++ b/core/field_textinput.js @@ -115,12 +115,12 @@ Blockly.FieldTextInput.prototype.doClassValidation_ = function(newValue) { * Called by setValue if the text input is not valid. If the field is * currently being edited it reverts value of the field to the previous * value while allowing the display text to be handled by the htmlInput_. - * @param {*} _newValue The input value that was determined to be invalid. + * @param {*} _invalidValue The input value that was determined to be invalid. * This is not used by the text input because its display value is stored on * the htmlInput_. * @protected */ -Blockly.FieldTextInput.prototype.doValueInvalid_ = function(_newValue) { +Blockly.FieldTextInput.prototype.doValueInvalid_ = function(_invalidValue) { if (this.isBeingEdited_) { this.isTextValid_ = false; var oldValue = this.value_;