sitemavens/maven-algolia — pull request #2 by redox (2014-05-13 10:19:33+00:00)
Title: Call autocomplete-ui's reponse callback from Algolia's callback to avoid outdated results

Hey there,

just a small patch ensuring that the ```response``` is not called with outdated results:
- call it directly from Algolia's callback
- check if the answer is the one expected checking the ```lastQuery``` attribute

Hope it helps :)

PS: don't know why my editor broke your indentation, sorry for that :/