diff --git a/core/misc/dropbutton/dropbutton.js b/core/misc/dropbutton/dropbutton.js index d952f00..d33ff44 100644 --- a/core/misc/dropbutton/dropbutton.js +++ b/core/misc/dropbutton/dropbutton.js @@ -24,8 +24,8 @@ Drupal.behaviors.dropButton = { // to prevent button text overflow on small screens. $($dropbuttons[0]).width($widestButton); // Add a class to the dropbutton-wrapper and dropbutton-widget HTML - // elements. This enables styles to be applied that ensure the - // dropbutton text displays correctly. + // elements. This enables styles to be applied that ensure the dropbutton + // text displays correctly. $('.js .dropbutton-wrapper, .js .dropbutton-widget').addClass('width-processed'); } } @@ -171,17 +171,17 @@ $.extend(Drupal.theme, { Drupal.DropButton = DropButton; /** -* Compares the widths of $button and $widestButton and returns the larger value. -* -* @param {Jquery} $button -* A jQuery $button element. -* -* @param {String} $widestButton -* The width to compare against $button. -* -* @return {String} -* The larger value after comparing the widths of $button and $widestButton. -*/ + * Compares the widths of $button and $widestButton and returns the larger. + * + * @param {Jquery} $button + * A jQuery $button element. + * + * @param {String} $widestButton + * The width to compare against $button. + * + * @return {String} + * The larger value after comparing the widths of $button and $widestButton. + */ function dropbuttonGetMaxWidth($button, $widestButton) { var buttonWidth = $('.dropbutton-widget', $button).outerWidth(); if (buttonWidth > $widestButton) {