diff options
Diffstat (limited to 'misc/autocomplete.js')
-rw-r--r-- | misc/autocomplete.js | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/misc/autocomplete.js b/misc/autocomplete.js index 658203dac..00b19fce5 100644 --- a/misc/autocomplete.js +++ b/misc/autocomplete.js @@ -230,11 +230,9 @@ function ACDB(uri) { * Performs a cached and delayed search */ ACDB.prototype.search = function(searchString) { - if (this.docache) { - this.searchString = searchString; - if (this.cache[searchString]) { - return this.match(this.cache[searchString]); - } + this.searchString = searchString; + if (this.cache[searchString]) { + return this.owner.found(this.cache[searchString]); } if (this.timer) { clearTimeout(this.timer); |