creating a callback function and wiring it up
<p>This is not a jquery question. </p>

<p>I want to create a callback function...so users would use it like so:</p>

<pre><code>myfunc.init('id',{option1: val, option2: val2}, function() {

//in here users can now call methods of myfunc 

});
</code></pre>

<p>How do I do this within my code. OS once I know my script is ready I want to be able to somehow call this anonymous function.</p>

<p>Hope this makes sense. I often don't.</p>
