Loading js/tiny_slider.js +8 −9 Original line number Diff line number Diff line Loading @@ -2,17 +2,16 @@ * @file */ (function ($) { (function (Drupal, once) { Drupal.behaviors.tinyslider = { attach: function (context, settings) { $('.tiny-slider-wrapper', context).each(function () { var $this = $(this); var sliderContainer = document.querySelector('.tiny-slider'), once('tiny-slider', '.tiny-slider-wrapper', context).forEach( function (sliderContainer) { opt = JSON.parse(sliderContainer.getAttribute('data-settings')); opt.container = sliderContainer; var slider = tns(opt); }); } ); } }; })(jQuery); }(Drupal, once)); tiny_slider.libraries.yml +1 −2 Original line number Diff line number Diff line Loading @@ -12,7 +12,6 @@ tiny_slider: /libraries/tiny-slider/dist/tiny-slider.js: {} js/tiny_slider.js: {} dependencies: - core/jquery - core/drupal - core/drupalSettings - core/jquery.once - core/once Loading
js/tiny_slider.js +8 −9 Original line number Diff line number Diff line Loading @@ -2,17 +2,16 @@ * @file */ (function ($) { (function (Drupal, once) { Drupal.behaviors.tinyslider = { attach: function (context, settings) { $('.tiny-slider-wrapper', context).each(function () { var $this = $(this); var sliderContainer = document.querySelector('.tiny-slider'), once('tiny-slider', '.tiny-slider-wrapper', context).forEach( function (sliderContainer) { opt = JSON.parse(sliderContainer.getAttribute('data-settings')); opt.container = sliderContainer; var slider = tns(opt); }); } ); } }; })(jQuery); }(Drupal, once));
tiny_slider.libraries.yml +1 −2 Original line number Diff line number Diff line Loading @@ -12,7 +12,6 @@ tiny_slider: /libraries/tiny-slider/dist/tiny-slider.js: {} js/tiny_slider.js: {} dependencies: - core/jquery - core/drupal - core/drupalSettings - core/jquery.once - core/once