diff --git a/jquery.swiftype.autocomplete.js b/jquery.swiftype.autocomplete.js index 2c52431..b7876b1 100644 --- a/jquery.swiftype.autocomplete.js +++ b/jquery.swiftype.autocomplete.js @@ -192,6 +192,13 @@ }; }; + Swiftype.resetAutocompleteCache = function () { + if ($this.cache) { + $this.cache = new LRUCache(10); + $this.lastValue = null; + processInput($this); + } + } var typingDelayPointer; var suppressKey = false;