Security update for Core, with self-updated composer
[yaffs-website] / web / core / misc / drupal.init.es6.js
1 // Allow other JavaScript libraries to use $.
2 if (window.jQuery) {
3   jQuery.noConflict();
4 }
5
6 // Class indicating that JS is enabled; used for styling purpose.
7 document.documentElement.className += ' js';
8
9 // JavaScript should be made compatible with libraries other than jQuery by
10 // wrapping it in an anonymous closure.
11
12 (function (domready, Drupal, drupalSettings) {
13   // Attach all behaviors.
14   domready(() => {
15     Drupal.attachBehaviors(document, drupalSettings);
16   });
17 }(domready, Drupal, window.drupalSettings));