mirror of
https://github.com/google/blockly.git
synced 2026-01-09 18:10:08 +01:00
Fix Plane demo.
This commit is contained in:
@@ -334,7 +334,7 @@ Plane.recalculate = function() {
|
||||
}
|
||||
}
|
||||
var seats = NaN;
|
||||
Blockly.JavaScript.init();
|
||||
Blockly.JavaScript.init(Blockly.mainWorkspace);
|
||||
var code = Blockly.JavaScript.blockToCode(rootBlock);
|
||||
try {
|
||||
seats = eval(code);
|
||||
|
||||
Reference in New Issue
Block a user