more debugging

This commit is contained in:
daarond
2015-05-11 21:18:12 -05:00
parent 5e7f92cec3
commit 37faa9937a
7 changed files with 100 additions and 110 deletions

View File

@@ -39,7 +39,7 @@ Blockly.PHP['variables_set'] = function(block) {
// Variable setter.
var argument0 = Blockly.PHP.valueToCode(block, 'VALUE',
Blockly.PHP.ORDER_ASSIGNMENT) || '0';
var varName = Blockly.PHP.variableDB_.getName(
var varName = Blockly.PHP.getName(
block.getFieldValue('VAR'), Blockly.Variables.NAME_TYPE);
return '$' + varName + ' = ' + argument0 + ';\n';
return varName + ' = ' + argument0 + ';\n';
};