Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / themes / seven / js / responsive-details.js
index 62ad4b2b35fc6a006b70a60923d4e1b675c8d159..3c62e3cef6af47dfb1d0190b9aa1af256d99fe86 100644 (file)
@@ -14,6 +14,8 @@
         return;
       }
 
+      var $summaries = $details.find('> summary');
+
       function detailsToggle(matches) {
         if (matches) {
           $details.attr('open', true);
@@ -31,7 +33,6 @@
         detailsToggle(event.matches);
       }
 
-      var $summaries = $details.find('> summary');
       var mql = window.matchMedia('(min-width:48em)');
       mql.addListener(handleDetailsMQ);
       detailsToggle(mql.matches);