jQuery document ready has to be anonymous function?
<p>I wanted to isolate my initiation function, so as not to put an anonymous function inside the <code>$(document).ready()</code> function. But, when I define it separately, and then try to call it, it doesn't fire.</p>

<p>An example:</p>

<pre><code>function init () {
    alert('hello world');
}

$(document).ready( init );
</code></pre>

<p>But the alert never fires. Can someone explain this to me, please?</p>
