Skip to content

Commit 37bf462

Browse files
author
Tomas Kirda
committed
Correctly extend options.
1 parent 63aa789 commit 37bf462

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/jquery.autocomplete.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -248,9 +248,7 @@
248248

249249
setOptions: function (suppliedOptions) {
250250
var that = this,
251-
options = that.options;
252-
253-
this.options = $.extend({}, options, suppliedOptions);
251+
options = $.extend({}, that.options, suppliedOptions);
254252

255253
that.isLocal = Array.isArray(options.lookup);
256254

@@ -266,6 +264,8 @@
266264
'width': options.width + 'px',
267265
'z-index': options.zIndex
268266
});
267+
268+
this.options = options;
269269
},
270270

271271

0 commit comments

Comments
 (0)