From 9a1f98b703f21648eecb7dd1ee9219f2e41e446b Mon Sep 17 00:00:00 2001 From: Rachel Fenichel Date: Wed, 4 May 2016 15:07:53 -0700 Subject: [PATCH] use correct class name --- blocks/loops.js | 2 +- core/field_number.js | 8 -------- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/blocks/loops.js b/blocks/loops.js index 033466f20..d9d8cbfcd 100644 --- a/blocks/loops.js +++ b/blocks/loops.js @@ -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" } diff --git a/core/field_number.js b/core/field_number.js index 600464173..eb92291bf 100644 --- a/core/field_number.js +++ b/core/field_number.js @@ -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); -};