From 6f1a1b249231f8a7f683ab1acb659e203bd9b466 Mon Sep 17 00:00:00 2001 From: Jonathan Sadowski Date: Fri, 5 Mar 2021 11:25:13 -0600 Subject: [PATCH] Update select2.js to use String.prototype.trim instead of jQuery.trim --- assets/js/select2/select2.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/js/select2/select2.js b/assets/js/select2/select2.js index b4500ad61a5..99431250b9a 100644 --- a/assets/js/select2/select2.js +++ b/assets/js/select2/select2.js @@ -3707,7 +3707,7 @@ S2.define('select2/data/tags',[ }; Tags.prototype.createTag = function (decorated, params) { - var term = $.trim(params.term); + var term = params.term.trim(); if (term === '') { return null; @@ -4941,7 +4941,7 @@ S2.define('select2/defaults',[ function matcher (params, data) { // Always return the object if there is nothing to compare - if ($.trim(params.term) === '') { + if ( params.term.trim() === '' ) { return data; }