diff --git a/core/connection.js b/core/connection.js index 9da7b0171..f59b0584d 100644 --- a/core/connection.js +++ b/core/connection.js @@ -156,8 +156,8 @@ Blockly.Connection.prototype.isSuperior = function() { /** * Checks whether the current connection can connect with the target * connection. - * @param (Blockly.Connection) target Connection to check compatibility with. - * @return {int} Blockly.Connection.CAN_CONNECT if the connection is legal, + * @param {Blockly.Connection} target Connection to check compatibility with. + * @return {number} Blockly.Connection.CAN_CONNECT if the connection is legal, * an error code otherwise. * @private */ @@ -177,7 +177,7 @@ Blockly.Connection.prototype.canConnectWithReason_ = function(target) { return Blockly.Connection.REASON_CHECKS_FAILED; } return Blockly.Connection.CAN_CONNECT; -} +}; /** * Checks whether the current connection and target connection are compatible @@ -205,7 +205,7 @@ Blockly.Connection.prototype.checkConnection_ = function(target) { default: throw 'Unknown connection failure: this should never happen!'; } -} +}; /** * Connect this connection to another connection. @@ -362,7 +362,6 @@ Blockly.Connection.singleConnection_ = function(block, orphanBlock) { * connections that will accept the orphaned block. If at any point there * are zero or multiple eligible connections, returns null. Otherwise * returns the only input on the last block in the chain. - *

* Terminates early for shadow blocks. * @param {!Blockly.Block} startBlack The block on which to start the search. * @param {!Blockly.Block} orphanBlock The block that is looking for a home.