ghiden/angucomplete-alt — pull request #17 by urecio (2014-07-15 12:39:34+00:00)
Title: Fixed bug which showed "No results" just before showing results

I've discovered that when I use an external api (which could be slower than a local json) and I write slow, the dropdown shows me "No results found" just before I get the result.
To replicate:
- Your json must have something which matches "butterflies"
- Slowly type "butterflies"
This happens because the $timeout sometimes can't be stopped in time and the last calling still sets scope.searching to false.
In my opinion it makes more sense to call directly to the function and at the same time set a $timeout just in case it couldn't find anything.