Make Block.getField public.

This commit is contained in:
Neil Fraser
2015-07-02 16:14:10 -07:00
parent fe34c26872
commit d1f6bdb173
5 changed files with 11 additions and 12 deletions

View File

@@ -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);
}
};

View File

@@ -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');
}
}