diff --git a/core/rendered_connection.js b/core/rendered_connection.js index 552248526..dcb90f1b0 100644 --- a/core/rendered_connection.js +++ b/core/rendered_connection.js @@ -86,7 +86,7 @@ Blockly.RenderedConnection.prototype.bumpAwayFrom_ = function(staticConnection) } // Raise it to the top for extra visibility. var selected = Blockly.selected == rootBlock; - selected || rootBlock.select(); + selected || rootBlock.addSelect(); var dx = (staticConnection.x_ + Blockly.SNAP_RADIUS) - this.x_; var dy = (staticConnection.y_ + Blockly.SNAP_RADIUS) - this.y_; if (reverse) { @@ -97,7 +97,7 @@ Blockly.RenderedConnection.prototype.bumpAwayFrom_ = function(staticConnection) dx = -dx; } rootBlock.moveBy(dx, dy); - selected || rootBlock.unselect(); + selected || rootBlock.removeSelect(); }; /**