mirror of
https://github.com/google/blockly.git
synced 2026-01-12 11:27:14 +01:00
Migrate core/field_label.js to ES6 const/let
This commit is contained in:
@@ -64,7 +64,7 @@ Blockly.FieldLabel.prototype.DEFAULT_VALUE = '';
|
||||
* @nocollapse
|
||||
*/
|
||||
Blockly.FieldLabel.fromJson = function(options) {
|
||||
var text = Blockly.utils.replaceMessageReferences(options['text']);
|
||||
const text = Blockly.utils.replaceMessageReferences(options['text']);
|
||||
// `this` might be a subclass of FieldLabel if that class doesn't override
|
||||
// the static fromJson method.
|
||||
return new this(text, undefined, options);
|
||||
|
||||
Reference in New Issue
Block a user