drupal.init.es6.js 519 B

1234567891011121314151617
  1. // Allow other JavaScript libraries to use $.
  2. if (window.jQuery) {
  3. jQuery.noConflict();
  4. }
  5. // Class indicating that JS is enabled; used for styling purpose.
  6. document.documentElement.className += ' js';
  7. // JavaScript should be made compatible with libraries other than jQuery by
  8. // wrapping it in an anonymous closure.
  9. (function(domready, Drupal, drupalSettings) {
  10. // Attach all behaviors.
  11. domready(() => {
  12. Drupal.attachBehaviors(document, drupalSettings);
  13. });
  14. })(domready, Drupal, window.drupalSettings);