javascript method extension
<p>I need to call "MyOtherFunction" when "MyFunction"(which creates an element) completes, without MyFunction knowing what MyOtherFunction is to update according to created elements.</p>

<p>The reason I need this is for extension of a jquery powered fileupload User Control that is used in several places with different functionality. A specific page shows a header and file count for it, and when the upload completes, I need to modify the file count according to how many files are displayed(by created elements) I thought :</p>

<pre><code>$(UserControl).on(MyFunction, UploadElem, MyOtherFunction);
</code></pre>

<p>but this route is not accomplishing anything. The most I can alter the User Control is add in a function call, but without effecting the original user control functionality.</p>

<p>I'm not sure if because MyFunction isn't an event and doesn't bubble up or if it just isn't possible to use a defined function as a parameter of .on() is the reason I cannot get this code to work. Any suggestions?</p>
