carlosdelfino / blockly

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

Block Factory don't work #213

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Since revision 1614 Block Factory dont work.
On console i can see:
Uncaught AssertionError: Assertion failed: Please use Blockly.Block.obtain.

To solve this problem line 416 in file apps/blockfactory/factory.js should be 
changed from:
  rootBlock = new Blockly.Block(Blockly.mainWorkspace, 'factory_base');
to:
  rootBlock = Blockly.Block.obtain(Blockly.mainWorkspace, 'factory_base');

Original issue reported on code.google.com by damian.l...@gmail.com on 8 Mar 2014 at 5:03

GoogleCodeExporter commented 8 years ago
Fixed, along with five other instances in the Block Factory.  I've grepped the 
code base, and this appears to be all the instances.  Committed in r1650.  
Thanks!

Original comment by neil.fra...@gmail.com on 8 Mar 2014 at 6:49

GoogleCodeExporter commented 8 years ago
Issue 214 has been merged into this issue.

Original comment by neil.fra...@gmail.com on 14 Mar 2014 at 5:24