mirror of
https://github.com/google/blockly.git
synced 2026-01-15 21:07:14 +01:00
Fix tests
This commit is contained in:
@@ -145,10 +145,10 @@ Blockly.ASTNode.createFieldNode = function(field) {
|
||||
* @return {Blockly.ASTNode} An AST node pointing to a connection.
|
||||
*/
|
||||
Blockly.ASTNode.createConnectionNode = function(connection) {
|
||||
var type = connection.type;
|
||||
if (!connection) {
|
||||
return null;
|
||||
}
|
||||
var type = connection.type;
|
||||
if (type == Blockly.connectionTypes.INPUT_VALUE) {
|
||||
return Blockly.ASTNode.createInputNode(connection.getParentInput());
|
||||
} else if (type == Blockly.connectionTypes.NEXT_STATEMENT &&
|
||||
|
||||
Reference in New Issue
Block a user