Commit dfabaa16 authored by Kimberlly  Amaral's avatar Kimberlly Amaral Committed by Joshua Sedler
Browse files

Issue #3272195 by lucassc, diegors: jQuery.once() is deprecated in Drupal...

Issue #3272195 by lucassc, diegors: jQuery.once() is deprecated in Drupal 9.3.0 and will be removed in Drupal 10.0.0
parent 44ffc272
Loading
Loading
Loading
Loading
+1 −1
Changes for js/photoswipe.jquery.js: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -35,7 +35,7 @@
        }

        // loop through all gallery elements and bind events
        $galleries.once('photoswipe').each(function (index) {
        $(once('photoswipe', $galleries)).each(function (index) {
          var $gallery = $(this);
          $gallery.attr('data-pswp-uid', index + 1);
          // Definitely prevent doble event binding on AJAX
+1 −1
Changes for photoswipe.libraries.yml: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -30,6 +30,6 @@ photoswipe.init:
    js/photoswipe.jquery.js: {}
  dependencies:
    - core/jquery
    - core/jquery.once
    - core/drupal
    - core/once
    - core/drupalSettings