0

i could'nt find any right answer for my case so i decided to add a new question here in hope to get some help from you.

What i have is:

two jquery versions:

window.$ = window.jQuery = version 1.11

window.myns.$ = window.myns.jQuery = version 1.8

Many many plugins with the module pattern style:

(function($) { ... })(jQuery); (these plugins cannot be modified!)

What i want:

.. is to load / bind some plugins to the 1.11 instance and some other to the 1.8 instance and access these plugins using jQuery.plugin() or myns.jQuery.plugin()

I found a similar question to this (RequireJS - jQuery plugins with multiple jQuery versions) with a link to a github project (http://github.com/jadekler/git-web-requiredemo) .. but there the loading to the plugin is sometimes unsuccessful or is bind to the wrong jQuery instance.

Please let me know if you need more informations about my problem, any help is greatly appreciated.

Maybe this explains better the problem: http://jsfiddle.net/2kZhh/

Here i want to load colorbox to 1.8.2 because i set deps to myJquery

Bests, Jonas

Community
  • 1
  • 1
  • maybe you can find your answer on this page: http://stackoverflow.com/questions/1566595/can-i-use-multiple-versions-of-jquery-on-the-same-page – Ray1618 Jun 03 '14 at 12:43
  • thank you for your fast response. unfortunately this does'nt fit for my require because i cannot use the alias (ns.jQuery) to import it because i cannot modifiy these plugins. so i must keep jQuery to import as it is. – user1700802 Jun 03 '14 at 12:55

0 Answers0