mirror of
https://github.com/google/blockly.git
synced 2026-01-04 23:50:12 +01:00
Make Block.getField public.
This commit is contained in:
@@ -57,7 +57,7 @@ Blockly.Blocks['controls_repeat'] = {
|
||||
});
|
||||
this.appendStatementInput('DO')
|
||||
.appendField(Blockly.Msg.CONTROLS_REPEAT_INPUT_DO);
|
||||
this.getField_('TIMES').setChangeHandler(
|
||||
this.getField('TIMES').setChangeHandler(
|
||||
Blockly.FieldTextInput.nonnegativeIntegerValidator);
|
||||
}
|
||||
};
|
||||
|
||||
@@ -570,12 +570,12 @@ Blockly.Blocks['procedures_callnoreturn'] = {
|
||||
var input = this.getInput('TOPROW');
|
||||
if (input) {
|
||||
if (this.arguments_.length) {
|
||||
if (!this.getField_('WITH')) {
|
||||
if (!this.getField('WITH')) {
|
||||
input.appendField(Blockly.Msg.PROCEDURES_CALL_BEFORE_PARAMS, 'WITH');
|
||||
input.init();
|
||||
}
|
||||
} else {
|
||||
if (this.getField_('WITH')) {
|
||||
if (this.getField('WITH')) {
|
||||
input.removeField('WITH');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user