mirror of
https://github.com/google/blockly.git
synced 2026-01-08 01:20:12 +01:00
Remove reference to undefined variable (#413)
REASON_MUST_DISCONNECT was removed by a refactor in 2a1ffa1.
This commit is contained in:
committed by
Neil Fraser
parent
3012d52808
commit
c09624a1b8
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user