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

I'm pretty sure this test does not work, here. Indeed, `_renderItemHTML` is defined inside the jQuery closure, and hence is not available at the top-level Javascript code.

You should test for `didAddPopup` instead, which is declared outside the closure.

```JavaScript
if(typeof didAddPopup != 'function') {
```