mirror of
https://github.com/google/blockly.git
synced 2026-01-10 18:37:09 +01:00
Migrate core/input_types.js named requires
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
goog.module('Blockly.inputTypes');
|
||||
goog.module.declareLegacyNamespace();
|
||||
|
||||
goog.require('Blockly.connectionTypes');
|
||||
const connectionTypes = goog.require('Blockly.connectionTypes');
|
||||
|
||||
/**
|
||||
* Enum for the type of a connection or input.
|
||||
@@ -22,9 +22,9 @@ goog.require('Blockly.connectionTypes');
|
||||
*/
|
||||
const inputTypes = {
|
||||
// A right-facing value input. E.g. 'set item to' or 'return'.
|
||||
VALUE: Blockly.connectionTypes.INPUT_VALUE,
|
||||
VALUE: connectionTypes.INPUT_VALUE,
|
||||
// A down-facing block stack. E.g. 'if-do' or 'else'.
|
||||
STATEMENT: Blockly.connectionTypes.NEXT_STATEMENT,
|
||||
STATEMENT: connectionTypes.NEXT_STATEMENT,
|
||||
// A dummy input. Used to add field(s) with no input.
|
||||
DUMMY: 5
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user