Say I am running a version of jQuery in no conflict like this:
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script><script type="text/javascript">var jQuery191 = $.noConflict(true);</script>
And I had an external .js file that should be run with the no conflict version jQuery191
and included the jQuery object of (jQuery)
at the bottom of the script.
If I included the .js file in getScript()
and ran it with the no conflict jQuery object:
(function (jQuery) {
$.getScript("js.js");
})(window.jQuery191)
Would the script be run with jQuery191
or with the original jQuery
? Or is this logic just dumb.