I have been working on adding autocomplete into a plugin for the tinyMCE editor. For some reason in the popup the autocomplete would only work on a few occasions - mainly when I was using the debugger. I noticed that on line 314 in jQuery.autocomplete.js:
if ( data && data.length && hasFocus ) { hasFocus was always 0. If I remove that value everything seems to work fine without side effect. Does anyone know what the implications of removing that value would be? As far as I can tell it is not critical. thanks