Commit 73ddd68f authored by Omkar Deshpande's avatar Omkar Deshpande Committed by Dave Reid
Browse files

Issue #3305665 by omkar-pd, Dave Reid: Replaced jquery/once library with core/once

parent 2296700c
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -3,7 +3,7 @@
 * Select2 behaviors.
 */

(function ($, Drupal, drupalSettings) {
(function ($, Drupal, drupalSettings, once) {
  'use strict';

  /**
@@ -69,8 +69,7 @@
     */
    detach: function (context, settings, trigger) {
      if (trigger === 'unload') {
        $(context).find('select')
          .removeOnce('select2')
        $(once.remove('select2', 'select', context))
          .select2('destroy');
      }
    },
@@ -190,4 +189,4 @@

  };

})(jQuery, Drupal, drupalSettings);
})(jQuery, Drupal, drupalSettings, once);
+1 −1
Original line number Diff line number Diff line
@@ -8,7 +8,7 @@ drupal.select2:
    - core/jquery
    - core/drupal
    - core/drupalSettings
    - core/jquery.once
    - core/once
    - select2_all/select2

select2: