From 078b4fceb3d550a02f4449eba3e49e120de52340 Mon Sep 17 00:00:00 2001 From: Rachel Fenichel Date: Thu, 19 Oct 2017 16:08:54 -0700 Subject: [PATCH] Revert some whitespace changes to appease eslint (#1370) --- core/extensions.js | 24 ++++++++++++------------ core/utils.js | 6 +++--- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/core/extensions.js b/core/extensions.js index 2ec647caa..c808f4527 100644 --- a/core/extensions.js +++ b/core/extensions.js @@ -89,8 +89,8 @@ Blockly.Extensions.registerMixin = function(name, mixinObj) { * flyout of the mutator dialog. * @throws {Error} if the mutation is invalid or can't be applied to the block. */ -Blockly.Extensions.registerMutator = - function(name, mixinObj, opt_helperFn, opt_blockList) { +Blockly.Extensions.registerMutator = function(name, mixinObj, opt_helperFn, + opt_blockList) { var errorPrefix = 'Error when registering mutator "' + name + '": '; // Sanity check the mixin object before registering it. @@ -162,8 +162,8 @@ Blockly.Extensions.apply = function(name, block, isMutator) { * @throws {Error} if the property does not exist or is not a function. * @private */ -Blockly.Extensions.checkHasFunction_ = - function(errorPrefix, func, propertyName) { +Blockly.Extensions.checkHasFunction_ = function(errorPrefix, func, + propertyName) { if (!func) { throw new Error(errorPrefix + 'missing required property "' + propertyName + '"'); @@ -230,8 +230,8 @@ Blockly.Extensions.checkMutatorDialog_ = function(object, errorPrefix) { * @param {!Blockly.Block} block The block to inspect. * @private */ -Blockly.Extensions.checkBlockHasMutatorProperties_ = - function(errorPrefix, block) { +Blockly.Extensions.checkBlockHasMutatorProperties_ = function(errorPrefix, + block) { if (typeof block.domToMutation != 'function') { throw new Error(errorPrefix + 'Applying a mutator didn\'t add "domToMutation"'); @@ -313,8 +313,8 @@ Blockly.Extensions.mutatorPropertiesMatch_ = function(oldProperties, block) { * tooltip text. * @return {Function} The extension function. */ -Blockly.Extensions.buildTooltipForDropdown = - function(dropdownName, lookupTable) { +Blockly.Extensions.buildTooltipForDropdown = function(dropdownName, + lookupTable) { // List of block types already validated, to minimize duplicate warnings. var blockTypesChecked = []; @@ -372,8 +372,8 @@ Blockly.Extensions.buildTooltipForDropdown = * @param {!Object} lookupTable The string lookup table * @private */ -Blockly.Extensions.checkDropdownOptionsInTable_ = - function(block, dropdownName, lookupTable) { +Blockly.Extensions.checkDropdownOptionsInTable_ = function(block, dropdownName, + lookupTable) { // Validate all dropdown options have values. var dropdown = block.getField(dropdownName); if (!dropdown.isOptionListDynamic()) { @@ -397,8 +397,8 @@ Blockly.Extensions.checkDropdownOptionsInTable_ = * @param {string} fieldName The field with the replacement value. * @returns {Function} The extension function. */ -Blockly.Extensions.buildTooltipWithFieldValue = - function(msgTemplate, fieldName) { +Blockly.Extensions.buildTooltipWithFieldValue = function(msgTemplate, + fieldName) { // Check the tooltip string messages for invalid references. // Wait for load, in case Blockly.Msg is not yet populated. // runAfterPageLoad() does not run in a Node.js environment due to lack of diff --git a/core/utils.js b/core/utils.js index 7b0a05a50..a8ac9117a 100644 --- a/core/utils.js +++ b/core/utils.js @@ -45,7 +45,7 @@ goog.require('goog.userAgent'); * accessed through the exact name that was exported. Note, that all the exports * are happening as the last thing in the generated js files, so they won't be * accessible before JavaScript loads! - * @return {!Object} + * @return {!Object} The message array. * @private */ Blockly.utils.getMessageArray_ = function() { @@ -493,8 +493,8 @@ Blockly.utils.checkMessageReferences = function(message) { * @return {!Array.} Array of strings and numbers. * @private */ -Blockly.utils.tokenizeInterpolation_ = - function(message, parseInterpolationTokens) { +Blockly.utils.tokenizeInterpolation_ = function(message, + parseInterpolationTokens) { var tokens = []; var chars = message.split(''); chars.push(''); // End marker.