ivaynberg/select2 — pull request #1474 by geophree (2013-06-27 20:43:20+00:00)
Title: Ignore old queries, remove highlight when beginning a new query.

This commit fixes two issues I was having:

If queries come back out of order, it's bad news. Mainly where this shows up is if you have a ```minimumInputLength```, if you go above then below it very fast, it will display the ```formatInputTooShort``` message, and after the query comes back, replace it with the outdated query results. e.g.:
You have a ```minimumInputLength``` of ```1```.
You type "c" and then immediately hit backspace. It shows the ```formatInputTooShort``` message, but then when the query comes back it shows the query results (even though you've already deleted your search term).

If you begin typing while search results are showing, the most recent highlight will continue to be highlighted, even if it no longer applies to the current term, e.g.:
You type "c", it shows the results: "cake" and "cookies", "cake" is highlighted.
You type "o" (now the search term is "co"), it continues to highlight "cake" until the search query comes back and displays "cookies" as the only result and highlights it.