mirror of
https://github.com/google/blockly.git
synced 2026-01-10 02:17:09 +01:00
Renamed _newValue param to _invalidValue.
This commit is contained in:
@@ -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
|
||||
};
|
||||
|
||||
|
||||
@@ -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_;
|
||||
|
||||
Reference in New Issue
Block a user