We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a9fd07f commit 69c2078Copy full SHA for 69c2078
blockly/src/turtle/blocks.js
@@ -696,7 +696,7 @@ exports.install = function(blockly, blockInstallOptions) {
696
generator.jump_by_constant = function() {
697
// Generate JavaScript for moving forward or backward the internal number
698
// of pixels without drawing.
699
- var value = window.parseFloat(this.getTitleValue('VALUE'));
+ var value = window.parseFloat(this.getTitleValue('VALUE')) || 0;
700
return 'Turtle.' + this.getTitleValue('DIR') +
701
'(' + value + ', \'block_id_' + this.id + '\');\n';
702
};
0 commit comments