mirror of
https://github.com/scratchfoundation/scratch-blocks.git
synced 2025-08-28 22:10:31 -04:00
Fix js style
This commit is contained in:
parent
9263e28263
commit
5cb6cf5a1d
1 changed files with 4 additions and 5 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue