theatlantic / django-select2-forms

Django form fields using the Select2 jQuery plugin
Other
82 stars 30 forks source link

select2.jquery_ready.js makes $ jquery object inaccessible from other scripts #7

Closed freb closed 7 years ago

freb commented 11 years ago

I'm not super proficient at JavaScript, but from what I can tell, any page on which I load the select2.jquery_ready.js file, the '$' jquery object becomes undefined. I've validated this with code elsewhere on the page, removing all other scripts, and trying to access '$' via the console. Also, when reassigning the variable just after loading the script with 'var $ = jQuery', everything works as expected. I can't tell which part of the file might be causing this.

atkinson commented 10 years ago

I can confirm this is an issue.