mirror of
https://github.com/google/blockly.git
synced 2026-01-07 09:00:11 +01:00
Misc cleanup.
This commit is contained in:
@@ -265,6 +265,9 @@ Blockly.FieldDropdown.prototype.getValue = function() {
|
||||
* @param {string} newValue New value to set.
|
||||
*/
|
||||
Blockly.FieldDropdown.prototype.setValue = function(newValue) {
|
||||
if (newValue === null || newValue === this.value_) {
|
||||
return; // No change if null.
|
||||
}
|
||||
this.value_ = newValue;
|
||||
// Look up and display the human-readable text.
|
||||
var options = this.getOptions_();
|
||||
|
||||
Reference in New Issue
Block a user