jQuery.noConflict for logged in users problem
is there some js guru who can help identify a possible issue with multiple jQuery instances please?
The problem (short version) is: (on a certain frontend controller-rendered view)
- load jquery-1.8.3.min.js
- load jquery.chosen plugin (http://harvesthq.github.com/chosen/
- init chosen
but when I'm logged in as admin (and the fuel edit bar is loaded together with jquery 1.5) the chosen plugin stops working, with an "method 'chosen' does not exist" error (which usually comes from jquery conflicts).
I've tried isolating both my script and /fuel/modules/fuel/js/edit_mode.js with a noConflict wrapper like so
var jq18 = jQuery.noConflict;
var jq15 = jQuery.noConflict;
(also i've made sure this works by alerting the $().jquery version and it does indeed work)
but the problem still persits.
If i log out the plugin works again so I'm assuming the cause MUST be with the older jquery version conflict spawned by the fuel bar...