Respond to more review comments

This commit is contained in:
Rachel Fenichel
2018-01-10 17:27:43 -08:00
parent a43b0e7010
commit 80b397f532
4 changed files with 34 additions and 20 deletions

View File

@@ -86,7 +86,7 @@ Blockly.Workspace = function(opt_options) {
this.variableMap_ = new Blockly.VariableMap(this);
/**
* Blocks in the flyout can refer to variables that don't exist in the
* Blocks in the flyout can refer to variables that don't exist in the main
* workspace. For instance, the "get item in list" block refers to an "item"
* variable regardless of whether the variable has been created yet.
* A FieldVariable must always refer to a Blockly.VariableModel. We reconcile
@@ -227,7 +227,7 @@ Blockly.Workspace.prototype.createVariable = function(name, opt_type, opt_id) {
};
/**
* Find all the uses of a named variable.
* Find all the uses of the given variable, which is identified by ID.
* @param {string} id ID of the variable to find.
* @return {!Array.<!Blockly.Block>} Array of block usages.
*/