Skip to content

Commit

Permalink
Fix: $.trim and $.isArray fn deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
fabienwnklr committed Oct 5, 2022
1 parent 2fa5ac5 commit 2aa3728
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/selectize.jquery.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ $.fn.selectize = function(settings_user) {
var data_raw = $input.attr(attr_data);

if (!data_raw) {
var value = $.trim($input.val() || '');
var value = String.prototype.trim($input.val() || '');
if (!settings.allowEmptyOption && !value.length) return;
values = value.split(settings.delimiter);
for (i = 0, n = values.length; i < n; i++) {
Expand Down

0 comments on commit 2aa3728

Please sign in to comment.