javascript: call a function in a closure scope
<p>Is there any way I can override a closure so it does part of what the original closure does? I know there's no straightforward way, but is there some hack? I'm willing to be messy...</p>

<pre><code>&lt;html&gt;
    &lt;head&gt;

        // I DON'T CONTROL THIS CODE!!!
        &lt;script&gt;
        ;(function() {

            function _dothing() {
                alert("_dothing");
            }

            function _doit() {
                _dothing();
                alert("_doit");
            }

            window.K = { doit : _doit };

        })();
        &lt;/script&gt;
    &lt;/head&gt;
&lt;body&gt;

    // I DO CONTROL THIS CODE
    &lt;script&gt;

        function mydoit() {
            alert("mydoit");
            _dothing();         &lt;-- THIS FAILS, IS THERE ANY WAY TO SUCCEED? :(
        }

        window.K.doit = mydoit;
        window.K.doit();
    &lt;/script&gt;

&lt;/body&gt;
&lt;/html&gt;
</code></pre>
