From cd06d55c54af3b59a8a62085d42b2aa88b2e921d Mon Sep 17 00:00:00 2001 From: Sam Kent Date: Wed, 27 Feb 2019 16:04:41 +0000 Subject: [PATCH 1/2] Anonymous f() --- python-main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python-main.js b/python-main.js index 91f937af..bc1814f5 100644 --- a/python-main.js +++ b/python-main.js @@ -467,7 +467,7 @@ function web_editor(config) { scaleSpeed: zoomScaleSteps + 1.0 } }); - function myUpdateFunction(event) { + var x = function myUpdateFunction(event) { var code = Blockly.Python.workspaceToCode(workspace); EDITOR.setCode(code); } From b50e945a2cfa7f44abadd9b839c54d42fe23544a Mon Sep 17 00:00:00 2001 From: microbit-carlos Date: Wed, 6 Mar 2019 19:34:38 +0000 Subject: [PATCH 2/2] Minor touch up on the ie10 function statement. --- python-main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python-main.js b/python-main.js index bc1814f5..b03dcbd9 100644 --- a/python-main.js +++ b/python-main.js @@ -467,10 +467,10 @@ function web_editor(config) { scaleSpeed: zoomScaleSteps + 1.0 } }); - var x = function myUpdateFunction(event) { + var myUpdateFunction = function(event) { var code = Blockly.Python.workspaceToCode(workspace); EDITOR.setCode(code); - } + }; // Resize blockly var element = document.getElementById('blockly'); new ResizeSensor(element, function() {