Fix 6 warnings in components/ (#3141)

This commit is contained in:
Sam El-Husseini
2019-10-02 16:12:17 -07:00
committed by GitHub
parent c6b8cd69b5
commit eb5f1cc94a
3 changed files with 6 additions and 5 deletions

View File

@@ -39,10 +39,8 @@ goog.require('Blockly.utils.style');
Blockly.Component = function() {
/**
* Whether the component is rendered right-to-left. Right-to-left is set
* lazily when {@link #isRightToLeft} is called the first time, unless it has
* been set by calling {@link #setRightToLeft} explicitly.
* @private {?boolean}
* Whether the component is rendered right-to-left.
* @private {boolean}
*/
this.rightToLeft_ = Blockly.Component.defaultRightToLeft;

View File

@@ -270,7 +270,9 @@ Blockly.Menu.prototype.setHighlightedIndex = function(index) {
// Bring the highlighted item into view. This has no effect if the menu is not
// scrollable.
if (child) {
Blockly.utils.style.scrollIntoContainerView(child.getElement(), this.getElement());
Blockly.utils.style.scrollIntoContainerView(
/** @type {!Element} */ (child.getElement()),
/** @type {!Element} */ (this.getElement()));
}
};

View File

@@ -262,6 +262,7 @@ Blockly.tree.TreeControl.prototype.exitDocument = function() {
/**
* Adds the event listeners to the tree.
* @private
* @suppress {deprecated}
*/
Blockly.tree.TreeControl.prototype.attachEvents_ = function() {
var el = this.getElement();