crucialfelix/django-ajax-selects — comment on commit 84fc80d6ad65e237e6f3f0e98b76661a6b551f7d
File: ajax_select/templates/ajax_select/ajax_select.js line 2
By crucialfelix:

logically yes, and that was the first thing I tried. and somehow it always says that didAddPopup is already a function even though its defined inside the if statement that is about to execute. I guess this is javascript, not python. all declarations in the scope are defined when the scope is entered. at least that's the only thing I can figure.

I've changed it to this, which works without fail:

if(typeof jQuery.fn.autocompletehtml != 'function') {