From 6c0c81d2f8a014c583d36fea88d434452fbf6c95 Mon Sep 17 00:00:00 2001 From: Tim Gates Date: Wed, 3 Nov 2021 11:44:40 +1100 Subject: [PATCH] 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`. --- core/contextmenu_items.js | 2 +- core/insertion_marker_manager.js | 2 +- core/toolbox/collapsible_category.js | 4 ++-- demos/blockfactory/workspacefactory/wfactory_controller.js | 2 +- demos/blockfactory/workspacefactory/wfactory_view.js | 2 +- tests/mocha/field_colour_test.js | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/core/contextmenu_items.js b/core/contextmenu_items.js index 73ac6a030..7ae79c865 100644 --- a/core/contextmenu_items.js +++ b/core/contextmenu_items.js @@ -232,7 +232,7 @@ exports.registerExpand = registerExpand; * @param {!BlockSvg} block to delete. * @param {!Array} deleteList list of blocks that can be deleted. * This will be - * modifed in place with the given block and its descendants. + * modified in place with the given block and its descendants. * @private */ const addDeletableBlocks_ = function(block, deleteList) { diff --git a/core/insertion_marker_manager.js b/core/insertion_marker_manager.js index 8fbc8c029..7122ed96d 100644 --- a/core/insertion_marker_manager.js +++ b/core/insertion_marker_manager.js @@ -39,7 +39,7 @@ const {WorkspaceSvg} = goog.requireType('Blockly.WorkspaceSvg'); /** * Class that controls updates to connections during drags. It is primarily * 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. * @constructor * @alias Blockly.InsertionMarkerManager diff --git a/core/toolbox/collapsible_category.js b/core/toolbox/collapsible_category.js index ccb88da14..3b24a9501 100644 --- a/core/toolbox/collapsible_category.js +++ b/core/toolbox/collapsible_category.js @@ -143,8 +143,8 @@ CollapsibleToolboxCategory.prototype.createToolboxItem_ = function(itemDef) { const categoryDef = /** @type {!toolbox.CategoryInfo} */ (itemDef); // Categories that are collapsible are created using a class registered under - // a diffferent name. - if (registryName.toUpperCase() === 'CATEGORY' && + // a different name. + if (registryName.toUpperCase() == 'CATEGORY' && toolbox.isCategoryCollapsible(categoryDef)) { registryName = CollapsibleToolboxCategory.registrationName; } diff --git a/demos/blockfactory/workspacefactory/wfactory_controller.js b/demos/blockfactory/workspacefactory/wfactory_controller.js index f3cead16a..149d91352 100644 --- a/demos/blockfactory/workspacefactory/wfactory_controller.js +++ b/demos/blockfactory/workspacefactory/wfactory_controller.js @@ -75,7 +75,7 @@ WorkspaceFactoryController = function(toolboxName, toolboxDiv, previewDiv) { // toolbox. WorkspaceFactoryController.MODE_TOOLBOX = 'toolbox'; // 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'; /** diff --git a/demos/blockfactory/workspacefactory/wfactory_view.js b/demos/blockfactory/workspacefactory/wfactory_view.js index 39b610362..774bbb8a3 100644 --- a/demos/blockfactory/workspacefactory/wfactory_view.js +++ b/demos/blockfactory/workspacefactory/wfactory_view.js @@ -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. * @param {string} mode The mode being switched to * (WorkspaceFactoryController.MODE_TOOLBOX or WorkspaceFactoryController.MODE_PRELOAD). diff --git a/tests/mocha/field_colour_test.js b/tests/mocha/field_colour_test.js index 63626f540..7c595a666 100644 --- a/tests/mocha/field_colour_test.js +++ b/tests/mocha/field_colour_test.js @@ -254,7 +254,7 @@ suite('Colour Fields', function() { test('Constants', function() { let columns = Blockly.FieldColour.COLUMNS; // 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; let field = new Blockly.FieldColour();