mirror of
https://github.com/google/blockly.git
synced 2026-01-24 01:00:11 +01:00
Fix js style
This commit is contained in:
@@ -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.
|
||||
* <p/>
|
||||
* 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.
|
||||
|
||||
Reference in New Issue
Block a user