From aa83199a55d4449f0ec99e85973b11dfe57f2622 Mon Sep 17 00:00:00 2001 From: kozbial Date: Tue, 3 Aug 2021 16:25:33 -0700 Subject: [PATCH] Migrate core/events/events_ui.js to ES6 const/let --- core/events/events_ui.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/events/events_ui.js b/core/events/events_ui.js index be8500b33..b28d86a2e 100644 --- a/core/events/events_ui.js +++ b/core/events/events_ui.js @@ -35,7 +35,7 @@ goog.requireType('Blockly.Block'); */ Blockly.Events.Ui = function(opt_block, opt_element, opt_oldValue, opt_newValue) { - var workspaceId = opt_block ? opt_block.workspace.id : undefined; + const workspaceId = opt_block ? opt_block.workspace.id : undefined; Blockly.Events.Ui.superClass_.constructor.call(this, workspaceId); this.blockId = opt_block ? opt_block.id : null; @@ -56,7 +56,7 @@ Blockly.Events.Ui.prototype.type = Blockly.Events.UI; * @return {!Object} JSON representation. */ Blockly.Events.Ui.prototype.toJson = function() { - var json = Blockly.Events.Ui.superClass_.toJson.call(this); + const json = Blockly.Events.Ui.superClass_.toJson.call(this); json['element'] = this.element; if (this.newValue !== undefined) { json['newValue'] = this.newValue;