nikhilgaud / blockly

Automatically exported from code.google.com/p/blockly
0 stars 0 forks source link

Blockfactory outputs bogus generator stubs for statment inputs #225

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Go to https://blockly-demo.appspot.com/static/apps/blockfactory/index.html
2. From the input menu add a statement input block
3. Observe code in the Generator stub text area.

What is the expected output? What do you see instead?
Expected:
var statements_name = Blockly.JavaScript.statementToCode(block, 'NAME');
Actual:
var statements_name = Blockly.' + language + '.statementToCode(block, 'NAME');

What browser are you using?
Chrome 32.0.1700.77

Please provide any additional information below.
It seems there is a quoting issue on this line.
https://code.google.com/p/blockly/source/browse/trunk/apps/blockfactory/factory.
js#351

The line should read:
" = Blockly." + language + ".statementToCode(block, '" +

Original issue reported on code.google.com by Techplex.Engineer on 11 May 2014 at 2:38

GoogleCodeExporter commented 9 years ago
Fixed in r1720.  Thanks!

Original comment by neil.fra...@gmail.com on 5 Jun 2014 at 4:48