From 1f1c8598a5dac8bb42dd82fff7edc7eda7fe4225 Mon Sep 17 00:00:00 2001 From: Aaron Dodson Date: Fri, 17 May 2024 15:10:55 -0700 Subject: [PATCH] fix: use non-deprecated input type constants (#78) --- blocks_vertical/procedures.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/blocks_vertical/procedures.js b/blocks_vertical/procedures.js index 941acb8d5e..71f103257e 100644 --- a/blocks_vertical/procedures.js +++ b/blocks_vertical/procedures.js @@ -561,9 +561,9 @@ function updateDeclarationProcCode_() { this.procCode_ += ' '; } var input = this.inputList[i]; - if (input.type == Blockly.DUMMY_INPUT) { + if (input.type == Blockly.inputs.inputTypes.DUMMY) { this.procCode_ += input.fieldRow[0].getValue(); - } else if (input.type == Blockly.INPUT_VALUE) { + } else if (input.type == Blockly.inputs.inputTypes.VALUE) { // Inspect the argument editor. var target = input.connection.targetBlock(); this.displayNames_.push(target.getFieldValue('TEXT')); @@ -587,9 +587,9 @@ function updateDeclarationProcCode_() { function focusLastEditor_() { if (this.inputList.length > 0) { var newInput = this.inputList[this.inputList.length - 1]; - if (newInput.type == Blockly.DUMMY_INPUT) { + if (newInput.type == Blockly.inputs.inputTypes.DUMMY) { newInput.fieldRow[0].showEditor_(); - } else if (newInput.type == Blockly.INPUT_VALUE) { + } else if (newInput.type == Blockly.inputs.inputTypes.VALUE) { // Inspect the argument editor. var target = newInput.connection.targetBlock(); target.getField('TEXT').showEditor_();