Skip to content

Commit b94b798

Browse files
microbit-sammicrobit-carlos
authored andcommitted
Fix function for IE10 (#100)
1 parent 0a53256 commit b94b798

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python-main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -474,10 +474,10 @@ function web_editor(config) {
474474
scaleSpeed: zoomScaleSteps + 1.0
475475
}
476476
});
477-
function myUpdateFunction(event) {
477+
var myUpdateFunction = function(event) {
478478
var code = Blockly.Python.workspaceToCode(workspace);
479479
EDITOR.setCode(code);
480-
}
480+
};
481481
// Resize blockly
482482
var element = document.getElementById('blockly');
483483
new ResizeSensor(element, function() {

0 commit comments

Comments
 (0)