From 2b1f1431cafc161c9a8db7f3acacf7f1e7cafb7b Mon Sep 17 00:00:00 2001 From: Alex Pott Date: Thu, 30 Dec 2021 11:36:13 +0000 Subject: [PATCH] Issue #3255504 by anagomes, Chi, cilefen: Remove jQuery dependency from date.js --- core/misc/date.es6.js | 4 ++-- core/misc/date.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/core/misc/date.es6.js b/core/misc/date.es6.js index a1862133f68..42f720ee1a6 100644 --- a/core/misc/date.es6.js +++ b/core/misc/date.es6.js @@ -3,7 +3,7 @@ * Polyfill for HTML5 date input. */ -(function ($, Modernizr, Drupal, once) { +(function (Modernizr, Drupal, once) { /** * Attach datepicker fallback on date elements. * @@ -151,4 +151,4 @@ `
${dateDesc} ${timeDesc}
`; -})(jQuery, Modernizr, Drupal, once); +})(Modernizr, Drupal, once); diff --git a/core/misc/date.js b/core/misc/date.js index 354a319061f..b241662fdd0 100644 --- a/core/misc/date.js +++ b/core/misc/date.js @@ -5,7 +5,7 @@ * @preserve **/ -(function ($, Modernizr, Drupal, once) { +(function (Modernizr, Drupal, once) { Drupal.behaviors.date = { attach(context, settings) { if (Modernizr.inputtypes.date === false) { @@ -76,4 +76,4 @@ }) => `
${dateDesc} ${timeDesc}
`; -})(jQuery, Modernizr, Drupal, once); \ No newline at end of file +})(Modernizr, Drupal, once); \ No newline at end of file