2
0
mirror of https://github.com/devbridge/jQuery-Autocomplete.git synced 2024-11-21 20:35:17 +00:00

Use deep copy when cloning settings. Fixes #723

This commit is contained in:
Tomas Kirda 2018-06-28 13:21:59 +03:00
parent 52e4899f55
commit f6eef033a4

View File

@ -70,7 +70,7 @@
that.isLocal = false;
that.suggestionsContainer = null;
that.noSuggestionsContainer = null;
that.options = $.extend({}, Autocomplete.defaults, options);
that.options = $.extend(true, {}, Autocomplete.defaults, options);
that.classes = {
selected: 'autocomplete-selected',
suggestion: 'autocomplete-suggestion'