Fix compiler warnings related to fields. (#3144)

* Fix compiler warnings related to fields.
This commit is contained in:
Sam El-Husseini
2019-10-03 15:58:46 -07:00
committed by GitHub
parent 7839512f0e
commit d0772ad496
27 changed files with 74 additions and 78 deletions

View File

@@ -101,7 +101,6 @@ Blockly.FieldAngle.fromJson = function(options) {
* Serializable fields are saved by the XML renderer, non-serializable fields
* are not. Editable fields should also be serializable.
* @type {boolean}
* @const
*/
Blockly.FieldAngle.prototype.SERIALIZABLE = true;
@@ -423,8 +422,9 @@ Blockly.FieldAngle.prototype.onHtmlInputKeyDown_ = function(e) {
multiplier = 1;
}
if (multiplier) {
var value = /** @type {number} */ (this.getValue());
this.displayMouseOrKeyboardValue_(
this.getValue() + (multiplier * this.round_));
value + (multiplier * this.round_));
e.preventDefault();
e.stopPropagation();
}