comparison core/misc/drupal.init.es6.js @ 0:c75dbcec494b

Initial commit from drush-created site
author Chris Cannam
date Thu, 05 Jul 2018 14:24:15 +0000
parents
children a9cd425dd02b
comparison
equal deleted inserted replaced
-1:000000000000 0:c75dbcec494b
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));