We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1b3c372 commit 2703e7bCopy full SHA for 2703e7b
1 file changed
blocks_vertical/control.js
@@ -60,6 +60,15 @@ Blockly.Blocks['control_forever'] = {
60
"category": Blockly.Categories.control,
61
"extensions": ["colours_control", "shape_end"]
62
});
63
+ },
64
+ mutationToDom: function() {
65
+ var container = document.createElement('mutation');
66
+ container.setAttribute('hasnext', this.nextConnection != null);
67
+ return container;
68
69
+ domToMutation: function(xmlElement) {
70
+ var hasNext = (xmlElement.getAttribute('hasnext') == 'true');
71
+ this.setNextStatement(hasNext, "normal");
72
}
73
};
74
0 commit comments