diff --git a/blocks/logic.js b/blocks/logic.js index cad9f6c8e..484cdca71 100644 --- a/blocks/logic.js +++ b/blocks/logic.js @@ -483,10 +483,10 @@ Blockly.Constants.Logic.CONTROLS_IF_MUTATOR_MIXIN = { }, /** * Reconnects child blocks. - * @param {!Array} valueConnections List of value - * connectsions for if input. - * @param {!Array} statementConnections List of - * statement connections for do input. + * @param {!Array.} valueConnections List of + * value connections for 'if' input. + * @param {!Array.} statementConnections List of + * statement connections for 'do' input. * @param {?Blockly.RenderedConnection} elseStatementConnection Statement * connection for else input. * @this {Blockly.Block} diff --git a/core/block.js b/core/block.js index 05199e598..f70f8e966 100644 --- a/core/block.js +++ b/core/block.js @@ -208,7 +208,7 @@ Blockly.Block = function(workspace, prototypeName, opt_id) { }; /** - * Optional text data that round-trips beween blocks and XML. + * Optional text data that round-trips between blocks and XML. * Has no effect. May be used by 3rd parties for meta information. * @type {?string} */ diff --git a/core/blockly.js b/core/blockly.js index 5a92f726a..b3b9f256d 100644 --- a/core/blockly.js +++ b/core/blockly.js @@ -679,7 +679,7 @@ Blockly.checkBlockColourConstants = function() { * Checks for a constant in the Blockly namespace, verifying it is undefined or * has the old/original value. Prints a warning if this is not true. * @param {string} msgName The Msg constant identifier. - * @param {Array} blocklyNamePath The name parts of the tested + * @param {Array.} blocklyNamePath The name parts of the tested * constant. * @param {number|undefined} expectedValue The expected value of the constant. * @private diff --git a/core/components/menu/menuitem.js b/core/components/menu/menuitem.js index 0cf2ad3fb..acb71d9fb 100644 --- a/core/components/menu/menuitem.js +++ b/core/components/menu/menuitem.js @@ -268,7 +268,7 @@ Blockly.MenuItem.prototype.setEnabled = function(enabled) { /** * Handles click events. If the component is enabled, trigger - * the action assosiated with this menu item. + * the action associated with this menu item. * @param {Event} _e Mouse event to handle. * @package */ diff --git a/core/components/tree/treecontrol.js b/core/components/tree/treecontrol.js index e4b7dfbe3..62f7607c4 100644 --- a/core/components/tree/treecontrol.js +++ b/core/components/tree/treecontrol.js @@ -70,7 +70,7 @@ Blockly.tree.TreeControl.prototype.getTree = function() { }; /** - * Returns the assosiated toolbox. + * Returns the associated toolbox. * @return {Blockly.Toolbox} The toolbox. * @package */ diff --git a/core/generator.js b/core/generator.js index 4241e2440..5f33b5a89 100644 --- a/core/generator.js +++ b/core/generator.js @@ -194,7 +194,7 @@ Blockly.Generator.prototype.blockToCode = function(block, opt_thisOnly) { } // First argument to func.call is the value of 'this' in the generator. // Prior to 24 September 2013 'this' was the only way to access the block. - // The current prefered method of accessing the block is through the second + // The current preferred method of accessing the block is through the second // argument to func.call, which becomes the first parameter to the generator. var code = func.call(block, block); if (Array.isArray(code)) { diff --git a/core/keyboard_nav/ast_node.js b/core/keyboard_nav/ast_node.js index ff6ff1423..c48df37d5 100644 --- a/core/keyboard_nav/ast_node.js +++ b/core/keyboard_nav/ast_node.js @@ -32,7 +32,7 @@ goog.provide('Blockly.ASTNode'); * It is recommended that you use one of the createNode methods instead of * creating a node directly. * @constructor - * @param {!string} type The type of the location. + * @param {string} type The type of the location. * Must be in Bockly.ASTNode.types. * @param {Blockly.Block|Blockly.Connection|Blockly.Field|Blockly.Workspace} * location The position in the AST. diff --git a/core/keyboard_nav/key_map.js b/core/keyboard_nav/key_map.js index 6c6c40aee..c53d02291 100644 --- a/core/keyboard_nav/key_map.js +++ b/core/keyboard_nav/key_map.js @@ -50,7 +50,7 @@ Blockly.user.keyMap.modifierKeys = { /** * Update the key map to contain the new action. - * @param {!string} keyCode The key code serialized by the serializeKeyEvent. + * @param {string} keyCode The key code serialized by the serializeKeyEvent. * @param {!Blockly.Action} action The action to be executed when the keys * corresponding to the serialized key code is pressed. * @package @@ -116,7 +116,7 @@ Blockly.user.keyMap.getKeyByAction = function(action) { /** * Serialize the key event. * @param {!Event} e A key up event holding the key code. - * @return {!string} A string containing the serialized key event. + * @return {string} A string containing the serialized key event. */ Blockly.user.keyMap.serializeKeyEvent = function(e) { var modifiers = Blockly.utils.object.values(Blockly.user.keyMap.modifierKeys); @@ -132,8 +132,8 @@ Blockly.user.keyMap.serializeKeyEvent = function(e) { /** * Create the serialized key code that will be used in the key map. - * @param {!number} keyCode Number code representing the key. - * @param {!Array} modifiers List of modifiers to be used with the key. + * @param {number} keyCode Number code representing the key. + * @param {!Array.} modifiers List of modifiers to be used with the key. * All valid modifiers can be found in the Blockly.user.keyMap.modifierKeys. * @return {string} The serialized key code for the given modifiers and key. */ diff --git a/core/keyboard_nav/navigation.js b/core/keyboard_nav/navigation.js index 73969c15b..f2922f239 100644 --- a/core/keyboard_nav/navigation.js +++ b/core/keyboard_nav/navigation.js @@ -770,7 +770,7 @@ Blockly.navigation.moveCursorOnBlockMutation = function(mutatedBlock) { /** * Handler for all the keyboard navigation events. * @param {Event} e The keyboard event. - * @return {!boolean} True if the key was handled false otherwise. + * @return {boolean} True if the key was handled false otherwise. */ Blockly.navigation.onKeyPress = function(e) { var key = Blockly.user.keyMap.serializeKeyEvent(e); @@ -1070,7 +1070,7 @@ Blockly.navigation.ACTION_TOGGLE_KEYBOARD_NAV = new Blockly.Action( /** * List of actions that can be performed in read only mode. - * @type {!Array} + * @type {!Array.} */ Blockly.navigation.READONLY_ACTION_LIST = [ Blockly.navigation.ACTION_PREVIOUS, diff --git a/core/utils/aria.js b/core/utils/aria.js index 84b67b72a..08a55976d 100644 --- a/core/utils/aria.js +++ b/core/utils/aria.js @@ -448,7 +448,7 @@ Blockly.utils.aria.removeRole = function(element) { * @param {!(Blockly.utils.aria.State|string)} stateName State attribute being set. * Automatically adds prefix 'aria-' to the state name if the attribute is * not an extra attribute. - * @param {string|boolean|number|!Array} value Value + * @param {string|boolean|number|!Array.} value Value * for the state attribute. */ Blockly.utils.aria.setState = function(element, stateName, value) { diff --git a/demos/blockfactory/block_definition_extractor.js b/demos/blockfactory/block_definition_extractor.js index 899e9b4d3..f684c75df 100644 --- a/demos/blockfactory/block_definition_extractor.js +++ b/demos/blockfactory/block_definition_extractor.js @@ -323,7 +323,7 @@ BlockDefinitionExtractor.input_ = function(input, align) { /** * Constructs a sequence elements representing the field definition. - * @param {Array} fieldRow A list of fields in a Blockly.Input. + * @param {Array.} fieldRow A list of fields in a Blockly.Input. * @return {Element} The fist element of the sequence * (and the root of the constructed DOM). * @private @@ -600,7 +600,7 @@ BlockDefinitionExtractor.buildFieldImage_ = /** * Creates a element a group of allowed connection constraint types. * - * @param {Array} types List of type names in this group. + * @param {Array.} types List of type names in this group. * @return {Element} The element representing the group, with child * types attached. * @private diff --git a/tests/jsunit/test_utilities.js b/tests/jsunit/test_utilities.js index 06944e54f..6c072097b 100644 --- a/tests/jsunit/test_utilities.js +++ b/tests/jsunit/test_utilities.js @@ -59,8 +59,8 @@ function isEqualArrays(array1, array2) { * the parameters if any exist. * @param {!Object} scope The scope of the method to be mocked out. * @param {!string} funcName The name of the function we're going to mock. - * @param {Array} parameters The parameters to call the mock with. - * @param {Array} return_values The values to return when called. + * @param {Array.} parameters The parameters to call the mock with. + * @param {Array.} return_values The values to return when called. * @return {!sinon.SinonStub} The stub method. */ function setUpMockMethod(scope, funcName, parameters, return_values) {