mirror of
https://github.com/scratchfoundation/scratch-blocks.git
synced 2025-08-28 22:10:31 -04:00
Remove reference to undefined variable (#413)
REASON_MUST_DISCONNECT was removed by a refactor in 2a1ffa1
.
This commit is contained in:
parent
3012d52808
commit
c09624a1b8
1 changed files with 1 additions and 2 deletions
|
@ -346,8 +346,7 @@ Blockly.Connection.prototype.checkConnection_ = function(target) {
|
|||
Blockly.Connection.prototype.isConnectionAllowed = function(candidate) {
|
||||
// Type checking.
|
||||
var canConnect = this.canConnectWithReason_(candidate);
|
||||
if (canConnect != Blockly.Connection.CAN_CONNECT &&
|
||||
canConnect != Blockly.Connection.REASON_MUST_DISCONNECT) {
|
||||
if (canConnect != Blockly.Connection.CAN_CONNECT) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue