X-Git-Url: https://yaffs.net/gitweb/?a=blobdiff_plain;f=web%2Fcore%2Fmisc%2Fdrupal.init.js;h=2a66f39793708d5c996c2963e3008c207cb9dc2a;hb=680c79a86e3ed402f263faeac92e89fb6d9edcc0;hp=0e55e190efa5741384dd66659703f13b11be5c7e;hpb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;p=yaffs-website diff --git a/web/core/misc/drupal.init.js b/web/core/misc/drupal.init.js index 0e55e190e..2a66f3979 100644 --- a/web/core/misc/drupal.init.js +++ b/web/core/misc/drupal.init.js @@ -1,19 +1,18 @@ -// Allow other JavaScript libraries to use $. +/** +* DO NOT EDIT THIS FILE. +* See the following change record for more information, +* https://www.drupal.org/node/2815083 +* @preserve +**/ + if (window.jQuery) { jQuery.noConflict(); } -// Class indicating that JS is enabled; used for styling purpose. document.documentElement.className += ' js'; -// JavaScript should be made compatible with libraries other than jQuery by -// wrapping it in an anonymous closure. - (function (domready, Drupal, drupalSettings) { - - 'use strict'; - - // Attach all behaviors. - domready(function () { Drupal.attachBehaviors(document, drupalSettings); }); - -})(domready, Drupal, window.drupalSettings); + domready(function () { + Drupal.attachBehaviors(document, drupalSettings); + }); +})(domready, Drupal, window.drupalSettings); \ No newline at end of file