Security update for Core, with self-updated composer
[yaffs-website] / web / core / misc / details-aria.js
index d341422351c826e6e5ebbea23f6b4139a7af6f2b..f927ab3cb6dbe55bcb4c1cffffff93b30f201fe1 100644 (file)
@@ -1,19 +1,13 @@
 /**
- * @file
- * Add aria attribute handling for details and summary elements.
- */
+* DO NOT EDIT THIS FILE.
+* See the following change record for more information,
+* https://www.drupal.org/node/2815083
+* @preserve
+**/
 
 (function ($, Drupal) {
-
-  'use strict';
-
-  /**
-   * Handles `aria-expanded` and `aria-pressed` attributes on details elements.
-   *
-   * @type {Drupal~behavior}
-   */
   Drupal.behaviors.detailsAria = {
-    attach: function () {
+    attach: function attach() {
       $('body').once('detailsAria').on('click.detailsAria', 'summary', function (event) {
         var $summary = $(event.currentTarget);
         var open = $(event.currentTarget.parentNode).attr('open') === 'open' ? 'false' : 'true';
@@ -25,5 +19,4 @@
       });
     }
   };
-
-})(jQuery, Drupal);
+})(jQuery, Drupal);
\ No newline at end of file