dyve/jquery-autocomplete — pull request #34 by toddself (2012-03-20 20:14:01+00:00)
Title: Fixing `onItemSelect` hook so it gets called.

For some reason `elem.focus()` is causing the `$.Autocompleter.prototype.selectItem` method to exit prematurely, preventing `this.callHook('onItemSelect', { value: value, data: data });` from being called.

This moves it to the end of the method, allowing the hook to be called.