Lint corrections.

This commit is contained in:
Neil Fraser
2015-07-02 19:41:10 -07:00
parent d1f6bdb173
commit d819db2acf
6 changed files with 16 additions and 8 deletions

View File

@@ -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) {

View File

@@ -30,7 +30,10 @@
*/
goog.provide('Blockly.Msg');
// Back up original getMsg function.
/**
* Back up original getMsg function.
* @type !Function
*/
goog.getMsgOrig = goog.getMsg;
/**

View File

@@ -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) {