Skip to content

Commit 2aa3728

Browse files
committed
Fix: $.trim and $.isArray fn deprecated
1 parent 2fa5ac5 commit 2aa3728

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/selectize.jquery.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ $.fn.selectize = function(settings_user) {
2121
var data_raw = $input.attr(attr_data);
2222

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

0 commit comments

Comments
 (0)