Skip to content

Commit

Permalink
Lint corrections.
Browse files Browse the repository at this point in the history
  • Loading branch information
NeilFraser committed Jun 17, 2015
1 parent b37fb2b commit edd3e3b
Show file tree
Hide file tree
Showing 24 changed files with 190 additions and 176 deletions.
4 changes: 2 additions & 2 deletions blockly_compressed.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions blockly_uncompressed.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions blocks/colour.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'] = {
Expand Down
3 changes: 3 additions & 0 deletions blocks/lists.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'] = {
Expand Down
3 changes: 3 additions & 0 deletions blocks/logic.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'] = {
Expand Down
27 changes: 9 additions & 18 deletions blocks/loops.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'] = {
Expand All @@ -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,
Expand All @@ -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);
}
Expand All @@ -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,
Expand All @@ -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);
}
};

Expand Down
3 changes: 3 additions & 0 deletions blocks/math.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'] = {
Expand Down
3 changes: 3 additions & 0 deletions blocks/procedures.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'] = {
Expand Down
3 changes: 3 additions & 0 deletions blocks/text.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'] = {
Expand Down
3 changes: 3 additions & 0 deletions blocks/variables.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'] = {
Expand Down
6 changes: 3 additions & 3 deletions blocks_compressed.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit edd3e3b

Please sign in to comment.