Open Walidmash opened 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
thanks for this note :)
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