facg3 / msn-AutoComplete

0 stars 0 forks source link

xhr request should be in a separeted function #19

Open Walidmash opened 6 years ago

Walidmash commented 6 years ago

To prevent repeating the code, XHR request should be in separate function as you will be using it more than once, especially that you are handing more than one API. https://github.com/facg3/msn-AutoComplete/blob/8c372d2136eec1a1ef9a7ffdb6da271cd51ef2f3/public/dom.js#L10

Salam-Dalloul commented 6 years ago

thanks for this note :)