Fix 10 warnings related to visibility (#3275)

This commit is contained in:
Sam El-Husseini
2019-10-17 11:46:57 -05:00
committed by GitHub
parent 7f41532717
commit 526528354f
4 changed files with 8 additions and 8 deletions

View File

@@ -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.<!Blockly.Connection>} Array of connections.
* @private
* @package
*/
Blockly.Block.prototype.getConnections_ = function(_all) {
var myConnections = [];

View File

@@ -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');
}

View File

@@ -81,9 +81,9 @@ Blockly.keyboardAccessibilityMode = false;
/**
* All of the connections on blocks that are currently being dragged.
* @type {!Array.<!Blockly.Connection>}
* @private
* @package
*/
Blockly.draggingConnections_ = [];
Blockly.draggingConnections = [];
/**
* Contents of the local clipboard.

View File

@@ -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;
}