JakAttack909 / blockly

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

Extension request: extend block.js duplicate_ by a return statement #101

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Dear all,

I implemented a functionality where it is necessary to duplicate a block and 
connect it to another. Unfortunately the Blockly.Block.prototype.duplicate_ 
function of block.js in the core folder doesn't return the duplicated block.

It would be nice if you could add a 'return newblock' at the end of the 
duplicate_ function. 

For the moment I added the above mentioned line by myself, but I believe that 
other users may would like to use the duplicate functionality in combination 
with the connect functionality as well. 

Best regards
Marc Wollenweber 

Original issue reported on code.google.com by borntob...@googlemail.com on 12 Jan 2013 at 9:45

GoogleCodeExporter commented 8 years ago
Fixed (r584).  Thanks!

Original comment by neil.fra...@gmail.com on 16 Jan 2013 at 2:22