From 97d3956c43c471009191b93aca80081a5d4a9fdd Mon Sep 17 00:00:00 2001 From: Gokula Krishna Date: Tue, 24 Jul 2018 13:31:04 +0800 Subject: [PATCH] Prioritize current key var-id --- blocks/procedures.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blocks/procedures.js b/blocks/procedures.js index b424823ed..7fe563e21 100644 --- a/blocks/procedures.js +++ b/blocks/procedures.js @@ -156,7 +156,7 @@ Blockly.Blocks['procedures_defnoreturn'] = { for (var i = 0, childNode; childNode = xmlElement.childNodes[i]; i++) { if (childNode.nodeName.toLowerCase() == 'arg') { var varName = childNode.getAttribute('name'); - var varId = childNode.getAttribute('varId') || childNode.getAttribute('var-id'); + var varId = childNode.getAttribute('var-id') || childNode.getAttribute('varId'); this.arguments_.push(varName); var variable = Blockly.Variables.getOrCreateVariablePackage( this.workspace, varId, varName, '');