jQuery noConflict IE issue
<p>I'm building a widget that depends on jquery being loaded - I'm using the following to load it and my code:</p>

<pre><code>(function () {

    var jqueryVersion = (window.jQuery !== undefined) ? window.jQuery.fn.jquery.charAt(0) + window.jQuery.fn.jquery.charAt(2) : 0;

    var jQuery;
    /******** Called once jQuery has loaded ******/
    function scriptLoadHandler() {
        jQuery = window.jQuery.noConflict(true);
        main();
    }

    /******** Load jQuery if not present *********/
    if (parseInt(jqueryVersion) &lt; 17) {
        var script_tag = document.createElement('script');
        script_tag.setAttribute("type", "text/javascript");
        script_tag.setAttribute("src", "//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js");
        script_tag.onload = scriptLoadHandler;
        script_tag.onreadystatechange = function () { // Same thing but for IE
            if (this.readyState === 'complete' || this.readyState === 'loaded') { scriptLoadHandler(); }
        };
        document.getElementsByTagName("head")[0].appendChild(script_tag);
    } else {
        jQuery = window.jQuery;
        main();
    }

    function main() {
        //my code goes in here
        //leaving blank for now because I still get error
    }

})();
</code></pre>

<p>I got most of that from here: <a href="http://alexmarandon.com/articles/web_widget_jquery/" rel="nofollow">http://alexmarandon.com/articles/web_widget_jquery/</a></p>

<p>I need jquery 1.7 or higher because I use the .on() method.  When I run this on a page using jquery that is older than 1.7 I sometimes get errors in IE that lead me to believe there is a conflict with either the old version of jquery or some other js on the page.  Some errors:</p>

<p>SCRIPT5007: Unable to get property 'forceInt' of undefined or null reference </p>

<p>SCRIPT5007: Object expected </p>

<p>SCRIPT5007: Unable to get property 'easing' of undefined or null reference </p>

<p>SCRIPT438: Object doesn't support property or method 'on'</p>

<p>These errors go away if I change</p>

<pre><code>jQuery = window.jQuery.noConflict(true);
</code></pre>

<p>to</p>

<pre><code>jQuery = window.jQuery.noConflict();
</code></pre>

<p>Am I doing something wrong? </p>
