facn5 / NodeJs-AutoComplete

0 stars 1 forks source link

getAutoCompleteWords is unnecessary #34

Open shiryz opened 5 years ago

shiryz commented 5 years ago

https://github.com/facn5/NodeJs-AutoComplete/blob/master/frontend/scripts/xhr.js#L33

You can send words as input to your callback cb: cb(words) and change your call to the following connectToBase(this.value, (words) => {