Align constants -> Blockly.constants.ALIGN enum

This commit is contained in:
Rachel Fenichel
2021-02-26 11:12:53 -08:00
parent eab0897b5d
commit 4e31deca2b
7 changed files with 38 additions and 39 deletions

View File

@@ -1765,10 +1765,10 @@ Blockly.Block.prototype.fieldFromJson_ = function(element) {
*/
Blockly.Block.prototype.inputFromJson_ = function(element, warningPrefix) {
var alignmentLookup = {
'LEFT': Blockly.ALIGN_LEFT,
'RIGHT': Blockly.ALIGN_RIGHT,
'CENTRE': Blockly.ALIGN_CENTRE,
'CENTER': Blockly.ALIGN_CENTRE
'LEFT': Blockly.constants.ALIGN.LEFT,
'RIGHT': Blockly.constants.ALIGN.RIGHT,
'CENTRE': Blockly.constants.ALIGN.CENTRE,
'CENTER': Blockly.constants.ALIGN.CENTRE
};
var input = null;