mirror of
https://github.com/google/blockly.git
synced 2026-01-07 17:10:11 +01:00
Make 'WITH' text field be optional (for Blockly Games).
This commit is contained in:
@@ -536,7 +536,10 @@ Blockly.Blocks['procedures_callnoreturn'] = {
|
||||
}
|
||||
}
|
||||
// Add 'with:' if there are parameters.
|
||||
this.getField_('WITH').setVisible(!!this.arguments_.length);
|
||||
var withField = this.getField_('WITH');
|
||||
if (withField) {
|
||||
withField.setVisible(!!this.arguments_.length);
|
||||
}
|
||||
// Restore rendering and show the changes.
|
||||
this.rendered = savedRendered;
|
||||
if (this.rendered) {
|
||||
|
||||
Reference in New Issue
Block a user