Lint corrections.

This commit is contained in:
Neil Fraser
2015-06-17 13:05:24 -07:00
parent b37fb2bf8c
commit edd3e3bf33
24 changed files with 190 additions and 176 deletions

View File

@@ -29,6 +29,9 @@ goog.provide('Blockly.Blocks.colour');
goog.require('Blockly.Blocks');
/**
* Common HSV hue for all blocks in this category.
*/
Blockly.Blocks.colour.HUE = 20;
Blockly.Blocks['colour_picker'] = {

View File

@@ -29,6 +29,9 @@ goog.provide('Blockly.Blocks.lists');
goog.require('Blockly.Blocks');
/**
* Common HSV hue for all blocks in this category.
*/
Blockly.Blocks.lists.HUE = 260;
Blockly.Blocks['lists_create_empty'] = {

View File

@@ -29,6 +29,9 @@ goog.provide('Blockly.Blocks.logic');
goog.require('Blockly.Blocks');
/**
* Common HSV hue for all blocks in this category.
*/
Blockly.Blocks.logic.HUE = 210;
Blockly.Blocks['controls_if'] = {

View File

@@ -29,6 +29,9 @@ goog.provide('Blockly.Blocks.loops');
goog.require('Blockly.Blocks');
/**
* Common HSV hue for all blocks in this category.
*/
Blockly.Blocks.loops.HUE = 120;
Blockly.Blocks['controls_repeat'] = {
@@ -38,20 +41,12 @@ Blockly.Blocks['controls_repeat'] = {
*/
init: function() {
this.jsonInit({
"message": Blockly.Msg.CONTROLS_REPEAT_TITLE + " %2 " +
Blockly.Msg.CONTROLS_REPEAT_INPUT_DO + " %3",
"message": Blockly.Msg.CONTROLS_REPEAT_TITLE,
"args": [
{
"type": "field_input",
"name": "TIMES",
"text": "10"
},
{
"type": "input_dummy"
},
{
"type": "input_statement",
"name": "DO"
}
],
"previousStatement": null,
@@ -60,6 +55,8 @@ Blockly.Blocks['controls_repeat'] = {
"tooltip": Blockly.Msg.CONTROLS_REPEAT_TOOLTIP,
"helpUrl": Blockly.Msg.CONTROLS_REPEAT_HELPURL
});
this.appendStatementInput('DO')
.appendField(Blockly.Msg.CONTROLS_REPEAT_INPUT_DO);
this.getField_('TIMES').setChangeHandler(
Blockly.FieldTextInput.nonnegativeIntegerValidator);
}
@@ -72,20 +69,12 @@ Blockly.Blocks['controls_repeat_ext'] = {
*/
init: function() {
this.jsonInit({
"message": Blockly.Msg.CONTROLS_REPEAT_TITLE + " %2 " +
Blockly.Msg.CONTROLS_REPEAT_INPUT_DO + " %3",
"message": Blockly.Msg.CONTROLS_REPEAT_TITLE,
"args": [
{
"type": "input_value",
"name": "TIMES",
"check": "Number"
},
{
"type": "input_dummy"
},
{
"type": "input_statement",
"name": "DO"
}
],
"previousStatement": null,
@@ -94,6 +83,8 @@ Blockly.Blocks['controls_repeat_ext'] = {
"tooltip": Blockly.Msg.CONTROLS_REPEAT_TOOLTIP,
"helpUrl": Blockly.Msg.CONTROLS_REPEAT_HELPURL
});
this.appendStatementInput('DO')
.appendField(Blockly.Msg.CONTROLS_REPEAT_INPUT_DO);
}
};

View File

@@ -29,6 +29,9 @@ goog.provide('Blockly.Blocks.math');
goog.require('Blockly.Blocks');
/**
* Common HSV hue for all blocks in this category.
*/
Blockly.Blocks.math.HUE = 230;
Blockly.Blocks['math_number'] = {

View File

@@ -29,6 +29,9 @@ goog.provide('Blockly.Blocks.procedures');
goog.require('Blockly.Blocks');
/**
* Common HSV hue for all blocks in this category.
*/
Blockly.Blocks.procedures.HUE = 290;
Blockly.Blocks['procedures_defnoreturn'] = {

View File

@@ -29,6 +29,9 @@ goog.provide('Blockly.Blocks.texts');
goog.require('Blockly.Blocks');
/**
* Common HSV hue for all blocks in this category.
*/
Blockly.Blocks.texts.HUE = 160;
Blockly.Blocks['text'] = {

View File

@@ -29,6 +29,9 @@ goog.provide('Blockly.Blocks.variables');
goog.require('Blockly.Blocks');
/**
* Common HSV hue for all blocks in this category.
*/
Blockly.Blocks.variables.HUE = 330;
Blockly.Blocks['variables_get'] = {