mirror of
https://github.com/google/blockly.git
synced 2025-12-15 13:50:08 +01:00
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:
@@ -232,7 +232,7 @@ exports.registerExpand = registerExpand;
|
||||
* @param {!BlockSvg} block to delete.
|
||||
* @param {!Array<!BlockSvg>} 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) {
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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';
|
||||
|
||||
/**
|
||||
|
||||
@@ -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).
|
||||
|
||||
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user