Fix 'any' type in Block Factory.

This commit is contained in:
Neil Fraser
2015-06-04 18:10:38 -07:00
parent 760d203c06
commit e8d68fd95d
2 changed files with 3 additions and 3 deletions

View File

@@ -610,7 +610,7 @@ Blockly.Blocks['type_group_item'] = {
Blockly.Blocks['type_null'] = {
// Null type.
valueType: 'null',
valueType: null,
init: function() {
this.setColour(230);
this.appendDummyInput()

View File

@@ -257,10 +257,10 @@ function getOptTypesFrom(block, name) {
var types = getTypesFrom_(block, name);
if (types.length == 0) {
return '';
} else if (types.length == 1) {
return types[0];
} else if (types.indexOf('null') != -1) {
return 'null';
} else if (types.length == 1) {
return types[0];
} else {
return '[' + types.join(', ') + ']';
}