diff --git a/core/modules/ckeditor/js/ckeditor.stylescombo.admin.js b/core/modules/ckeditor/js/ckeditor.stylescombo.admin.js index d9c585a1b5e8..5fe814d158d6 100644 --- a/core/modules/ckeditor/js/ckeditor.stylescombo.admin.js +++ b/core/modules/ckeditor/js/ckeditor.stylescombo.admin.js @@ -46,7 +46,7 @@ * parsing works identically, but instead of failing on invalid styles, we * just ignore those. * - * @param String sstyles + * @param String styles * The "styles" setting. * * @return array diff --git a/core/modules/contextual/js/contextual.js b/core/modules/contextual/js/contextual.js index 1e27ec410286..eccb54b8f5f5 100644 --- a/core/modules/contextual/js/contextual.js +++ b/core/modules/contextual/js/contextual.js @@ -159,7 +159,7 @@ var uncachedIDs = _.filter(ids, function initIfCached(contextualID) { var html = storage.getItem('Drupal.contextual.' + contextualID); if (html !== null) { - // Initialize after the current executation cycle, to make the AJAX + // Initialize after the current execution cycle, to make the AJAX // request for retrieving the uncached contextual links as soon as // possible, but also to ensure that other Drupal behaviors have had the // chance to set up an event listener on the Backbone collection diff --git a/core/modules/contextual/js/toolbar/models/StateModel.js b/core/modules/contextual/js/toolbar/models/StateModel.js index 79f8bc774277..360b9fb46909 100644 --- a/core/modules/contextual/js/toolbar/models/StateModel.js +++ b/core/modules/contextual/js/toolbar/models/StateModel.js @@ -38,7 +38,7 @@ initialize: function (attrs, options) { // Respond to new/removed contextual links. this.listenTo(options.contextualCollection, { - 'reset remove add': this.countCountextualLinks, + 'reset remove add': this.countContextualLinks, 'add': this.lockNewContextualLinks }); @@ -62,7 +62,7 @@ * @param Backbone.Collection contextualCollection * The collection of contextual link models. */ - countCountextualLinks: function (contextualModel, contextualCollection) { + countContextualLinks: function (contextualModel, contextualCollection) { this.set('contextualCount', contextualCollection.length); }, diff --git a/core/modules/editor/js/editor.admin.js b/core/modules/editor/js/editor.admin.js index 7c54759e8111..4cbfdc7a9c76 100644 --- a/core/modules/editor/js/editor.admin.js +++ b/core/modules/editor/js/editor.admin.js @@ -379,8 +379,9 @@ /** * Checks whether the current status of a filter allows a specific feature - * by building the universe of potential values from the feature's require- - * ments and then checking whether anything in the filter prevents that. + * by building the universe of potential values from the feature's + * requirements and then checking whether anything in the filter prevents + * that. * * @see generateUniverseFromFeatureRequirements() */ diff --git a/core/modules/file/file.js b/core/modules/file/file.js index b704542bddd4..ed1ff16d6074 100644 --- a/core/modules/file/file.js +++ b/core/modules/file/file.js @@ -152,7 +152,7 @@ // do not get enabled when we re-enable these fields at the end of behavior // processing. Re-enable in a setTimeout set to a relatively short amount // of time (1 second). All the other mousedown handlers (like Drupal's Ajax - // behaviors) are excuted before any timeout functions are called, so we + // behaviors) are executed before any timeout functions are called, so we // don't have to worry about the fields being re-enabled too soon. // @todo If the previous sentence is true, why not set the timeout to 0? var $fieldsToTemporarilyDisable = $('div.form-managed-file input.form-file').not($enabledFields).not(':disabled'); diff --git a/core/modules/filter/filter.filter_html.admin.js b/core/modules/filter/filter.filter_html.admin.js index a2a20405faa4..d8e36c4cf980 100644 --- a/core/modules/filter/filter.filter_html.admin.js +++ b/core/modules/filter/filter.filter_html.admin.js @@ -39,7 +39,7 @@ Drupal.behaviors.filterFilterHtmlUpdating = { - // The form item containg the "Allowed HTML tags" setting. + // The form item contains the "Allowed HTML tags" setting. $allowedHTMLFormItem: null, // The description for the "Allowed HTML tags" field. diff --git a/core/modules/menu_ui/menu_ui.admin.js b/core/modules/menu_ui/menu_ui.admin.js index 06a9f3472d21..8c037c58e4f3 100644 --- a/core/modules/menu_ui/menu_ui.admin.js +++ b/core/modules/menu_ui/menu_ui.admin.js @@ -37,7 +37,7 @@ var $select = $('#edit-menu-parent'); // Save key of last selected element. var selected = $select.val(); - // Remove all exisiting options from dropdown. + // Remove all existing options from dropdown. $select.children().remove(); // Add new options to dropdown. Keep a count of options for testing later. var totalOptions = 0; diff --git a/core/modules/menu_ui/menu_ui.js b/core/modules/menu_ui/menu_ui.js index 36fb1d694ecd..3859b7a7a1b1 100644 --- a/core/modules/menu_ui/menu_ui.js +++ b/core/modules/menu_ui/menu_ui.js @@ -36,29 +36,29 @@ // If there is a link title already, mark it as overridden. The user expects // that toggling the checkbox twice will take over the node's title. if ($checkbox.is(':checked') && $link_title.val().length) { - $link_title.data('menuLinkAutomaticTitleOveridden', true); + $link_title.data('menuLinkAutomaticTitleOverridden', true); } // Whenever the value is changed manually, disable this behavior. $link_title.on('keyup', function () { - $link_title.data('menuLinkAutomaticTitleOveridden', true); + $link_title.data('menuLinkAutomaticTitleOverridden', true); }); // Global trigger on checkbox (do not fill-in a value when disabled). $checkbox.on('change', function () { if ($checkbox.is(':checked')) { - if (!$link_title.data('menuLinkAutomaticTitleOveridden')) { + if (!$link_title.data('menuLinkAutomaticTitleOverridden')) { $link_title.val($title.val()); } } else { $link_title.val(''); - $link_title.removeData('menuLinkAutomaticTitleOveridden'); + $link_title.removeData('menuLinkAutomaticTitleOverridden'); } $checkbox.closest('.vertical-tabs-pane').trigger('summaryUpdated'); $checkbox.trigger('formUpdated'); }); // Take over any title change. $title.on('keyup', function () { - if (!$link_title.data('menuLinkAutomaticTitleOveridden') && $checkbox.is(':checked')) { + if (!$link_title.data('menuLinkAutomaticTitleOverridden') && $checkbox.is(':checked')) { $link_title.val($title.val()); $link_title.val($title.val()).trigger('formUpdated'); } diff --git a/core/modules/quickedit/js/models/EntityModel.js b/core/modules/quickedit/js/models/EntityModel.js index e8500653b251..ab4dbd9014f6 100644 --- a/core/modules/quickedit/js/models/EntityModel.js +++ b/core/modules/quickedit/js/models/EntityModel.js @@ -16,7 +16,7 @@ el: null, // An entity ID, of the form "/", e.g. "node/1". entityID: null, - // An entity instance ID. The first intance of a specific entity (i.e. with + // An entity instance ID. The first instance of a specific entity (i.e. with // a given entity ID) is assigned 0, the second 1, and so on. entityInstanceID: null, // The unique ID of this entity instance on the page, of the form "') .parent().eq(0).addClass('first').end().eq(-1).addClass('last'); - // Remove the 'Add ' prefix from the button labels since they're being palced + // Remove the 'Add ' prefix from the button labels since they're being placed // in an 'Add' dropdown. // @todo This assumes English, but so does $addDisplayDropdown above. Add // support for translation.