mirror of
https://github.com/google/blockly.git
synced 2026-01-10 18:37:09 +01:00
Fix 10 warnings related to visibility (#3275)
This commit is contained in:
@@ -328,7 +328,7 @@ Blockly.Connection.prototype.canConnectToPrevious_ = function(candidate) {
|
||||
}
|
||||
|
||||
// Don't let blocks try to connect to themselves or ones they nest.
|
||||
if (Blockly.draggingConnections_.indexOf(candidate) != -1) {
|
||||
if (Blockly.draggingConnections.indexOf(candidate) != -1) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -405,7 +405,7 @@ Blockly.Connection.prototype.isConnectionAllowed = function(candidate) {
|
||||
}
|
||||
|
||||
// Don't let blocks try to connect to themselves or ones they nest.
|
||||
if (Blockly.draggingConnections_.indexOf(candidate) != -1) {
|
||||
if (Blockly.draggingConnections.indexOf(candidate) != -1) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user