diff --git a/src/jquery.autocomplete.js b/src/jquery.autocomplete.js index d93174b..f903b88 100644 --- a/src/jquery.autocomplete.js +++ b/src/jquery.autocomplete.js @@ -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; },