docs: Fix a few typos (#5655)

There are small typos in:
- closure/goog/base.js
- core/contextmenu_items.js
- core/insertion_marker_manager.js
- core/toolbox/collapsible_category.js
- demos/blockfactory/workspacefactory/wfactory_controller.js
- demos/blockfactory/workspacefactory/wfactory_view.js
- tests/mocha/field_colour_test.js

Fixes:
- Should read `updates` rather than `udpates`.
- Should read `unhighlighting` rather than `unhiglighting`.
- Should read `then` rather than `tehn`.
- Should read `modified` rather than `modifed`.
- Should read `different` rather than `diffferent`.
- Should read `currently` rather than `currenly`.
- Should read `browser` rather than `broswer`.
This commit is contained in:
Tim Gates
2021-11-03 11:44:40 +11:00
committed by GitHub
parent f4381bb373
commit 6c0c81d2f8
6 changed files with 7 additions and 7 deletions

View File

@@ -232,7 +232,7 @@ exports.registerExpand = registerExpand;
* @param {!BlockSvg} block to delete. * @param {!BlockSvg} block to delete.
* @param {!Array<!BlockSvg>} deleteList list of blocks that can be deleted. * @param {!Array<!BlockSvg>} deleteList list of blocks that can be deleted.
* This will be * This will be
* modifed in place with the given block and its descendants. * modified in place with the given block and its descendants.
* @private * @private
*/ */
const addDeletableBlocks_ = function(block, deleteList) { const addDeletableBlocks_ = function(block, deleteList) {

View File

@@ -39,7 +39,7 @@ const {WorkspaceSvg} = goog.requireType('Blockly.WorkspaceSvg');
/** /**
* Class that controls updates to connections during drags. It is primarily * Class that controls updates to connections during drags. It is primarily
* responsible for finding the closest eligible connection and highlighting or * responsible for finding the closest eligible connection and highlighting or
* unhiglighting it as needed during a drag. * unhighlighting it as needed during a drag.
* @param {!BlockSvg} block The top block in the stack being dragged. * @param {!BlockSvg} block The top block in the stack being dragged.
* @constructor * @constructor
* @alias Blockly.InsertionMarkerManager * @alias Blockly.InsertionMarkerManager

View File

@@ -143,8 +143,8 @@ CollapsibleToolboxCategory.prototype.createToolboxItem_ = function(itemDef) {
const categoryDef = /** @type {!toolbox.CategoryInfo} */ (itemDef); const categoryDef = /** @type {!toolbox.CategoryInfo} */ (itemDef);
// Categories that are collapsible are created using a class registered under // Categories that are collapsible are created using a class registered under
// a diffferent name. // a different name.
if (registryName.toUpperCase() === 'CATEGORY' && if (registryName.toUpperCase() == 'CATEGORY' &&
toolbox.isCategoryCollapsible(categoryDef)) { toolbox.isCategoryCollapsible(categoryDef)) {
registryName = CollapsibleToolboxCategory.registrationName; registryName = CollapsibleToolboxCategory.registrationName;
} }

View File

@@ -75,7 +75,7 @@ WorkspaceFactoryController = function(toolboxName, toolboxDiv, previewDiv) {
// toolbox. // toolbox.
WorkspaceFactoryController.MODE_TOOLBOX = 'toolbox'; WorkspaceFactoryController.MODE_TOOLBOX = 'toolbox';
// Pre-loaded workspace editing mode. Changes the user makes to the workspace // Pre-loaded workspace editing mode. Changes the user makes to the workspace
// udpates the pre-loaded blocks. // updates the pre-loaded blocks.
WorkspaceFactoryController.MODE_PRELOAD = 'preload'; WorkspaceFactoryController.MODE_PRELOAD = 'preload';
/** /**

View File

@@ -333,7 +333,7 @@ WorkspaceFactoryView.prototype.unmarkShadowBlock = function(block) {
}; };
/** /**
* Sets the tabs for modes according to which mode the user is currenly * Sets the tabs for modes according to which mode the user is currently
* editing in. * editing in.
* @param {string} mode The mode being switched to * @param {string} mode The mode being switched to
* (WorkspaceFactoryController.MODE_TOOLBOX or WorkspaceFactoryController.MODE_PRELOAD). * (WorkspaceFactoryController.MODE_TOOLBOX or WorkspaceFactoryController.MODE_PRELOAD).

View File

@@ -254,7 +254,7 @@ suite('Colour Fields', function() {
test('Constants', function() { test('Constants', function() {
let columns = Blockly.FieldColour.COLUMNS; let columns = Blockly.FieldColour.COLUMNS;
// Note: Developers shouldn't actually do this. IMO they should edit // Note: Developers shouldn't actually do this. IMO they should edit
// the file and tehn recompile. But this is fine for testing. // the file and then recompile. But this is fine for testing.
Blockly.FieldColour.COLUMNS = 3; Blockly.FieldColour.COLUMNS = 3;
let field = new Blockly.FieldColour(); let field = new Blockly.FieldColour();