Migrate core/renderers/zelos/measurables/inputs.js to goog.module

This commit is contained in:
kozbial
2021-08-17 11:44:56 -07:00
committed by Monica Kozbial
parent 57644d1e29
commit 40474324f6
2 changed files with 8 additions and 5 deletions

View File

@@ -10,7 +10,8 @@
* @author samelh@google.com (Sam El-Husseini)
*/
goog.provide('Blockly.zelos.StatementInput');
goog.module('Blockly.zelos.StatementInput');
goog.module.declareLegacyNamespace();
goog.require('Blockly.blockRendering.StatementInput');
goog.require('Blockly.utils.object');
@@ -30,8 +31,8 @@ goog.requireType('Blockly.Input');
* @constructor
* @extends {Blockly.blockRendering.StatementInput}
*/
Blockly.zelos.StatementInput = function(constants, input) {
Blockly.zelos.StatementInput.superClass_.constructor.call(this,
const StatementInput = function(constants, input) {
StatementInput.superClass_.constructor.call(this,
constants, input);
if (this.connectedBlock) {
@@ -46,5 +47,7 @@ Blockly.zelos.StatementInput = function(constants, input) {
}
}
};
Blockly.utils.object.inherits(Blockly.zelos.StatementInput,
Blockly.utils.object.inherits(StatementInput,
Blockly.blockRendering.StatementInput);
exports = StatementInput;

View File

@@ -182,7 +182,7 @@ goog.addDependency('../../core/renderers/zelos/drawer.js', ['Blockly.zelos.Drawe
goog.addDependency('../../core/renderers/zelos/info.js', ['Blockly.zelos.RenderInfo'], ['Blockly.FieldImage', 'Blockly.FieldLabel', 'Blockly.FieldTextInput', 'Blockly.blockRendering.InRowSpacer', 'Blockly.blockRendering.RenderInfo', 'Blockly.blockRendering.Types', 'Blockly.constants', 'Blockly.inputTypes', 'Blockly.utils.object', 'Blockly.zelos.BottomRow', 'Blockly.zelos.RightConnectionShape', 'Blockly.zelos.TopRow'], {'lang': 'es6', 'module': 'goog'});
goog.addDependency('../../core/renderers/zelos/marker_svg.js', ['Blockly.zelos.MarkerSvg'], ['Blockly.blockRendering.MarkerSvg', 'Blockly.utils.Svg', 'Blockly.utils.dom', 'Blockly.utils.object'], {'lang': 'es6', 'module': 'goog'});
goog.addDependency('../../core/renderers/zelos/measurables/bottom_row.js', ['Blockly.zelos.BottomRow'], ['Blockly.blockRendering.BottomRow', 'Blockly.utils.object'], {'lang': 'es6', 'module': 'goog'});
goog.addDependency('../../core/renderers/zelos/measurables/inputs.js', ['Blockly.zelos.StatementInput'], ['Blockly.blockRendering.StatementInput', 'Blockly.utils.object']);
goog.addDependency('../../core/renderers/zelos/measurables/inputs.js', ['Blockly.zelos.StatementInput'], ['Blockly.blockRendering.StatementInput', 'Blockly.utils.object'], {'lang': 'es6', 'module': 'goog'});
goog.addDependency('../../core/renderers/zelos/measurables/row_elements.js', ['Blockly.zelos.RightConnectionShape'], ['Blockly.blockRendering.Measurable', 'Blockly.blockRendering.Types', 'Blockly.utils.object'], {'lang': 'es6', 'module': 'goog'});
goog.addDependency('../../core/renderers/zelos/measurables/top_row.js', ['Blockly.zelos.TopRow'], ['Blockly.blockRendering.TopRow', 'Blockly.utils.object'], {'lang': 'es6', 'module': 'goog'});
goog.addDependency('../../core/renderers/zelos/path_object.js', ['Blockly.zelos.PathObject'], ['Blockly.blockRendering.PathObject', 'Blockly.utils.Svg', 'Blockly.utils.dom', 'Blockly.utils.object'], {'lang': 'es6', 'module': 'goog'});