mirror of
https://github.com/devbridge/jQuery-Autocomplete.git
synced 2024-11-21 20:35:17 +00:00
Correctly extend options.
This commit is contained in:
parent
63aa789722
commit
37bf4627f2
@ -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;
|
||||
},
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user