This commit is contained in:
Neil Fraser
2019-08-01 16:39:29 -07:00
committed by Neil Fraser
parent ae24b544f3
commit 939bbd072b
7 changed files with 12 additions and 13 deletions

View File

@@ -608,8 +608,8 @@ Blockly.ASTNode.prototype.in = function() {
return Blockly.ASTNode.createConnectionNode(targetConnection);
}
break;
}
return null;
};
@@ -682,9 +682,8 @@ Blockly.ASTNode.prototype.out = function() {
var target = this.location_.targetConnection;
if (target) {
return Blockly.ASTNode.createConnectionNode(target);
} else {
return Blockly.ASTNode.createStackNode(this.location_.getSourceBlock());
}
return Blockly.ASTNode.createStackNode(this.location_.getSourceBlock());
case Blockly.ASTNode.types.FIELD:
return Blockly.ASTNode.createBlockNode(this.location_.getSourceBlock());

View File

@@ -254,7 +254,7 @@ BlockExporterController.prototype.selectUsedBlocks = function() {
this.view.listSelectedBlocks();
if (unstoredCustomBlockTypes.length > 0) {
// Warn user to import block defifnitions and generator code for blocks
// Warn user to import block definitions and generator code for blocks
// not in their Block Library nor Blockly's standard library.
var blockTypesText = unstoredCustomBlockTypes.join(', ');
var customWarning = 'Custom blocks used in workspace factory but not ' +