2
0
mirror of https://github.com/devbridge/jQuery-Autocomplete.git synced 2024-09-19 00:39:01 +00:00

Correctly extend options.

This commit is contained in:
Tomas Kirda 2017-09-21 17:36:53 -05:00
parent 63aa789722
commit 37bf4627f2

View File

@ -248,9 +248,7 @@
setOptions: function (suppliedOptions) {
var that = this,
options = that.options;
this.options = $.extend({}, options, suppliedOptions);
options = $.extend({}, that.options, suppliedOptions);
that.isLocal = Array.isArray(options.lookup);
@ -266,6 +264,8 @@
'width': options.width + 'px',
'z-index': options.zIndex
});
this.options = options;
},