mirror of
https://github.com/google/blockly.git
synced 2026-01-08 01:20:12 +01:00
Merge branch 'develop' of https://github.com/google/blockly into develop
This commit is contained in:
@@ -656,7 +656,7 @@ function updatePreview() {
|
||||
|
||||
if (format == 'JSON') {
|
||||
var json = JSON.parse(code);
|
||||
Blockly.Blocks[json.id || UNNAMED] = {
|
||||
Blockly.Blocks[json.type || UNNAMED] = {
|
||||
init: function() {
|
||||
this.jsonInit(json);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user