mirror of
https://github.com/google/blockly.git
synced 2026-01-18 14:27:12 +01:00
Lint corrections.
This commit is contained in:
@@ -71,7 +71,7 @@ Blockly.inject = function(container, opt_options) {
|
||||
/**
|
||||
* Parse the provided toolbox tree into a consistent DOM format.
|
||||
* @param {Node|string} tree DOM tree of blocks, or text representation of same.
|
||||
* @return {Node} DOM tree of blocks or null.
|
||||
* @return {Node} DOM tree of blocks, or null.
|
||||
* @private
|
||||
*/
|
||||
Blockly.parseToolboxTree_ = function(tree) {
|
||||
|
||||
@@ -30,7 +30,10 @@
|
||||
*/
|
||||
goog.provide('Blockly.Msg');
|
||||
|
||||
// Back up original getMsg function.
|
||||
/**
|
||||
* Back up original getMsg function.
|
||||
* @type !Function
|
||||
*/
|
||||
goog.getMsgOrig = goog.getMsg;
|
||||
|
||||
/**
|
||||
|
||||
@@ -161,7 +161,8 @@ Blockly.Toolbox.prototype.position = function() {
|
||||
var svgPosition = goog.style.getPageOffset(svg);
|
||||
var svgSize = Blockly.svgSize(svg);
|
||||
if (this.workspace_.RTL) {
|
||||
treeDiv.style.left = (svgPosition.x + svgSize.width - treeDiv.offsetWidth) + 'px';
|
||||
treeDiv.style.left =
|
||||
(svgPosition.x + svgSize.width - treeDiv.offsetWidth) + 'px';
|
||||
} else {
|
||||
treeDiv.style.left = svgPosition.x + 'px';
|
||||
}
|
||||
@@ -177,6 +178,7 @@ Blockly.Toolbox.prototype.position = function() {
|
||||
|
||||
/**
|
||||
* Fill the toolbox with categories and blocks.
|
||||
* @param {Node} newTree DOM tree of blocks, or null.
|
||||
* @private
|
||||
*/
|
||||
Blockly.Toolbox.prototype.populate_ = function(newTree) {
|
||||
|
||||
Reference in New Issue
Block a user