mirror of
https://github.com/google/blockly.git
synced 2026-01-08 17:40:09 +01:00
Start using field_number.
This commit is contained in:
@@ -43,8 +43,7 @@ Blockly.Blocks['math_number'] = {
|
||||
this.setHelpUrl(Blockly.Msg.MATH_NUMBER_HELPURL);
|
||||
this.setColour(Blockly.Blocks.math.HUE);
|
||||
this.appendDummyInput()
|
||||
.appendField(new Blockly.FieldNumber('0',
|
||||
Blockly.FieldTextInput.numberValidator), 'NUM');
|
||||
.appendField(new Blockly.FieldNumber('0'), 'NUM');
|
||||
this.setOutput(true, 'Number');
|
||||
// Assign 'this' to a variable for use in the tooltip closure below.
|
||||
var thisBlock = this;
|
||||
|
||||
Reference in New Issue
Block a user