diff --git a/core/modules/block/js/block.js b/core/modules/block/js/block.js index b96aa5e..5d239c0 100644 --- a/core/modules/block/js/block.js +++ b/core/modules/block/js/block.js @@ -24,10 +24,10 @@ /** * Create a summary for checkboxes in the provided context. * - * @param {HTMLElement} context + * @param {HTMLDocument|HTMLElement} context * A context where one would find checkboxes to summarize. * - * @returns {string} + * @return {string} * A string with the summary. */ function checkboxesSummary(context) { @@ -131,7 +131,7 @@ }); /** - * Function to check empty regions and toggle classes based on this. + * Checks empty regions and toggles classes based on this. * * @param {jQuery} table * The jQuery object representing the table to inspect. @@ -141,9 +141,11 @@ var checkEmptyRegions = function (table, rowObject) { table.find('tr.region-message').each(function () { var $this = $(this); - // If the dragged row is in this region, but above the message row, swap it down one space. + // If the dragged row is in this region, but above the message row, + // swap it down one space. if ($this.prev('tr').get(0) === rowObject.element) { - // Prevent a recursion problem when using the keyboard to move rows up. + // Prevent a recursion problem when using the keyboard to move rows + // up. if ((rowObject.method !== 'keyboard' || rowObject.direction === 'down')) { rowObject.swap('after', this); }