From 90c58d51dbd6d60ff8f487923193b76c468466e9 Mon Sep 17 00:00:00 2001 From: Neil Fraser Date: Thu, 15 Jan 2015 15:35:41 -0800 Subject: [PATCH] Fix Plane demo. --- demos/plane/plane.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/demos/plane/plane.js b/demos/plane/plane.js index 52f9e773d..64a24798e 100644 --- a/demos/plane/plane.js +++ b/demos/plane/plane.js @@ -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);