From 14e846f2b73b90448e6b5736e87d2311bb8d2b13 Mon Sep 17 00:00:00 2001 From: Rachel Fenichel Date: Thu, 17 May 2018 16:19:44 -0700 Subject: [PATCH] Fix 1380 --- core/rendered_connection.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/core/rendered_connection.js b/core/rendered_connection.js index c68dc490d..76c63289b 100644 --- a/core/rendered_connection.js +++ b/core/rendered_connection.js @@ -180,16 +180,14 @@ Blockly.RenderedConnection.prototype.tighten_ = function() { * Find the closest compatible connection to this connection. * All parameters are in workspace units. * @param {number} maxLimit The maximum radius to another connection. - * @param {number} dx Horizontal offset between this connection's location - * in the database and the current location (as a result of dragging). - * @param {number} dy Vertical offset between this connection's location + * @param {!goog.math.Coordinate} dxy Offset between this connection's location * in the database and the current location (as a result of dragging). * @return {!{connection: ?Blockly.Connection, radius: number}} Contains two * properties: 'connection' which is either another connection or null, * and 'radius' which is the distance. */ -Blockly.RenderedConnection.prototype.closest = function(maxLimit, dx, dy) { - return this.dbOpposite_.searchForClosest(this, maxLimit, dx, dy); +Blockly.RenderedConnection.prototype.closest = function(maxLimit, dxy) { + return this.dbOpposite_.searchForClosest(this, maxLimit, dxy); }; /**