Renamed _newValue param to _invalidValue.

This commit is contained in:
Beka Westberg
2019-06-24 14:58:33 -07:00
parent 4a0d5f5df0
commit 3227223c82
2 changed files with 4 additions and 4 deletions

View File

@@ -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
};

View File

@@ -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_;