2
0
mirror of https://github.com/devbridge/jQuery-Autocomplete.git synced 2024-11-08 22:31:03 +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;
},