summaryrefslogtreecommitdiffstatshomepage
path: root/core/misc/details-summarized-content.es6.js
diff options
context:
space:
mode:
Diffstat (limited to 'core/misc/details-summarized-content.es6.js')
-rw-r--r--core/misc/details-summarized-content.es6.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/core/misc/details-summarized-content.es6.js b/core/misc/details-summarized-content.es6.js
index 7cc1d709b4b1..4408c279fcbe 100644
--- a/core/misc/details-summarized-content.es6.js
+++ b/core/misc/details-summarized-content.es6.js
@@ -72,9 +72,7 @@
*/
Drupal.behaviors.detailsSummary = {
attach(context) {
- const $detailsElements = $(context)
- .find('details')
- .once('details');
+ const $detailsElements = $(context).find('details').once('details');
DetailsSummarizedContent.instances = DetailsSummarizedContent.instances.concat(
$detailsElements
@@ -103,6 +101,6 @@
* @return {string}
* The formatted summarized content text.
*/
- Drupal.theme.detailsSummarizedContentText = text =>
+ Drupal.theme.detailsSummarizedContentText = (text) =>
text ? ` (${text})` : '';
})(jQuery, Drupal);