From ad3541992edc7bc34ffb42d72c00d8121df4903b Mon Sep 17 00:00:00 2001 From: Troy McKinnon Date: Fri, 30 Sep 2016 16:26:44 -0500 Subject: [PATCH] add a few type definitions --- core/toolbox.js | 5 ++++- core/workspace_svg.js | 4 ++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/core/toolbox.js b/core/toolbox.js index caa03c54b..e67936a4b 100644 --- a/core/toolbox.js +++ b/core/toolbox.js @@ -148,7 +148,10 @@ Blockly.Toolbox.prototype.init = function() { var workspace = this.workspace_; var svg = this.workspace_.getParentSvg(); - // Create an HTML container for the Toolbox menu. + /** + * HTML container for the Toolbox menu. + * @type {Element} + */ this.HtmlDiv = goog.dom.createDom(goog.dom.TagName.DIV, 'blocklyToolboxDiv'); this.HtmlDiv.setAttribute('dir', workspace.RTL ? 'RTL' : 'LTR'); diff --git a/core/workspace_svg.js b/core/workspace_svg.js index 6c72c934e..4559decc8 100644 --- a/core/workspace_svg.js +++ b/core/workspace_svg.js @@ -254,6 +254,10 @@ Blockly.WorkspaceSvg.prototype.createDom = function(opt_backgroundClass) { // Determine if there needs to be a category tree, or a simple list of // blocks. This cannot be changed later, since the UI is very different. if (this.options.hasCategories) { + /** + * @type {Blockly.Toolbox} + * @private + */ this.toolbox_ = new Blockly.Toolbox(this); } else if (this.options.languageTree) { this.addFlyout_();