Security update for Core, with self-updated composer
[yaffs-website] / web / core / themes / seven / js / nav-tabs.js
index ba44ffb944c980177e5abd387fc8a60b1908505e..82d31cdb7f019558ac55631fd608cba5d2327448 100644 (file)
@@ -1,14 +1,11 @@
 /**
- * @file
- * Responsive navigation tabs.
- *
- * This also supports collapsible navigable is the 'is-collapsible' class is
- * added to the main element, and a target element is included.
- */
-(function ($, Drupal) {
-
-  'use strict';
+* DO NOT EDIT THIS FILE.
+* See the following change record for more information,
+* https://www.drupal.org/node/2815083
+* @preserve
+**/
 
+(function ($, Drupal) {
   function init(i, tab) {
     var $tab = $(tab);
     var $target = $tab.find('[data-drupal-nav-tabs-target]');
     $(window).on('resize.tabs', Drupal.debounce(handleResize, 150)).trigger('resize.tabs');
   }
 
-  /**
-   * Initialise the tabs JS.
-   */
   Drupal.behaviors.navTabs = {
-    attach: function (context, settings) {
+    attach: function attach(context, settings) {
       var $tabs = $(context).find('[data-drupal-nav-tabs]');
       if ($tabs.length) {
         var notSmartPhone = window.matchMedia('(min-width: 300px)');
@@ -51,5 +45,4 @@
       }
     }
   };
-
-})(jQuery, Drupal);
+})(jQuery, Drupal);
\ No newline at end of file