mirror of
https://github.com/google/blockly.git
synced 2026-01-10 18:37:09 +01:00
use correct class name
This commit is contained in:
@@ -71,7 +71,7 @@ Blockly.Blocks['controls_repeat'] = {
|
||||
"message0": Blockly.Msg.CONTROLS_REPEAT_TITLE,
|
||||
"args0": [
|
||||
{
|
||||
"type": "field_input",
|
||||
"type": "field_number",
|
||||
"name": "TIMES",
|
||||
"text": "10"
|
||||
}
|
||||
|
||||
@@ -43,11 +43,3 @@ Blockly.FieldNumber = function(text, opt_validator) {
|
||||
opt_validator);
|
||||
};
|
||||
goog.inherits(Blockly.FieldNumber, Blockly.FieldTextInput);
|
||||
|
||||
/**
|
||||
* Return the current value.
|
||||
* @return {number} Current value as a number
|
||||
*/
|
||||
Blockly.FieldColour.prototype.getValue = function() {
|
||||
return parseFloat(this.text_ || 0);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user