Remove reference to undefined variable (#413)

REASON_MUST_DISCONNECT was removed by a refactor in 2a1ffa1.
This commit is contained in:
Rodrigo Queiro 2016-06-08 19:01:04 +02:00 committed by Neil Fraser
parent 3012d52808
commit c09624a1b8

View file

@ -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;
}