diff --git a/core/block.js b/core/block.js index 1d4b50163..9a439349d 100644 --- a/core/block.js +++ b/core/block.js @@ -496,7 +496,7 @@ Blockly.Block.prototype.unplugFromStack_ = function(opt_healStack) { * Returns all connections originating from this block. * @param {boolean} _all If true, return all connections even hidden ones. * @return {!Array.} Array of connections. - * @private + * @package */ Blockly.Block.prototype.getConnections_ = function(_all) { var myConnections = []; diff --git a/core/block_svg.js b/core/block_svg.js index 92cbd4d84..81bbbffde 100644 --- a/core/block_svg.js +++ b/core/block_svg.js @@ -899,12 +899,12 @@ Blockly.BlockSvg.prototype.setDragging = function(adding) { var group = this.getSvgRoot(); group.translate_ = ''; group.skew_ = ''; - Blockly.draggingConnections_ = - Blockly.draggingConnections_.concat(this.getConnections_(true)); + Blockly.draggingConnections = + Blockly.draggingConnections.concat(this.getConnections_(true)); Blockly.utils.dom.addClass( /** @type {!Element} */ (this.svgGroup_), 'blocklyDragging'); } else { - Blockly.draggingConnections_ = []; + Blockly.draggingConnections = []; Blockly.utils.dom.removeClass( /** @type {!Element} */ (this.svgGroup_), 'blocklyDragging'); } diff --git a/core/blockly.js b/core/blockly.js index 30de3b1cb..856ef4b62 100644 --- a/core/blockly.js +++ b/core/blockly.js @@ -81,9 +81,9 @@ Blockly.keyboardAccessibilityMode = false; /** * All of the connections on blocks that are currently being dragged. * @type {!Array.} - * @private + * @package */ -Blockly.draggingConnections_ = []; +Blockly.draggingConnections = []; /** * Contents of the local clipboard. diff --git a/core/connection.js b/core/connection.js index cbe6a217a..8a2e87086 100644 --- a/core/connection.js +++ b/core/connection.js @@ -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; }