Unverified Commit 2b1f1431 authored by Alex Pott's avatar Alex Pott
Browse files

Issue #3255504 by anagomes, Chi, cilefen: Remove jQuery dependency from date.js

parent aa3434c4
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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 @@
    `<div class="no-native-datepicker-help">
       <span id="${dateId}">${dateDesc}</span> <span id="${timeId}">${timeDesc}</span>
     </div>`;
})(jQuery, Modernizr, Drupal, once);
})(Modernizr, Drupal, once);
+2 −2
Original line number Diff line number Diff line
@@ -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 @@
  }) => `<div class="no-native-datepicker-help">
       <span id="${dateId}">${dateDesc}</span> <span id="${timeId}">${timeDesc}</span>
     </div>`;
})(jQuery, Modernizr, Drupal, once);
 No newline at end of file
})(Modernizr, Drupal, once);
 No newline at end of file