mirror of
https://github.com/google/blockly.git
synced 2026-01-17 22:07:10 +01:00
Fix 6 warnings in components/ (#3141)
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -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()));
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user