From f6eef033a48b7b8422ad31f28a915ea4c58b9eb7 Mon Sep 17 00:00:00 2001 From: Tomas Kirda Date: Thu, 28 Jun 2018 13:21:59 +0300 Subject: [PATCH] Use deep copy when cloning settings. Fixes #723 --- src/jquery.autocomplete.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jquery.autocomplete.js b/src/jquery.autocomplete.js index 95f66c1..635f058 100644 --- a/src/jquery.autocomplete.js +++ b/src/jquery.autocomplete.js @@ -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'