mirror of
https://github.com/google/blockly.git
synced 2026-01-08 01:20:12 +01:00
Remove this.text_ (#2910)
* Remove this.text_ and have every field handle its own properties.
This commit is contained in:
@@ -294,13 +294,8 @@ Blockly.FieldAngle.prototype.setAngle = function(angle) {
|
||||
}
|
||||
|
||||
// Update value.
|
||||
var angleString = String(angle);
|
||||
if (angleString != this.text_) {
|
||||
this.htmlInput_.value = angle;
|
||||
this.setValue(angle);
|
||||
// Always render the input angle.
|
||||
this.text_ = angleString;
|
||||
this.forceRerender();
|
||||
if (angle != this.value_) {
|
||||
this.setEditorValue_(angle);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user