mirror of
https://github.com/google/blockly.git
synced 2026-01-09 10:00:09 +01:00
Add isDragging to canConnectWithReason and delete newly unused code paths.
This commit is contained in:
@@ -553,7 +553,7 @@ Blockly.RenderedConnection.prototype.onCheckChanged_ = function() {
|
||||
// The new value type may not be compatible with the existing connection.
|
||||
if (this.isConnected() && (!this.targetConnection ||
|
||||
!this.getConnectionTypeChecker().canConnect(
|
||||
this, this.targetConnection, false, false))) {
|
||||
this, this.targetConnection, false))) {
|
||||
var child = this.isSuperior() ? this.targetBlock() : this.sourceBlock_;
|
||||
child.unplug();
|
||||
// Bump away.
|
||||
|
||||
Reference in New Issue
Block a user