Manually creating a javascript event object
<p>Say I have the following code:</p>

<pre><code>$('#someid').click(function(event) { myFunction(event); });

function myFunction(event)
{
   // do something with event
}
</code></pre>

<p>And I would like to test <code>myFunction()</code> with an eval statement, without doing something like using <code>eval('$("#someid").click()')</code>;</p>

<p>Is there a way to manually create an event object in javascript that would work with an eval statement?</p>

<p>Also if myFunction is only used as an event handler, can it always assume <code>event</code> is not null?</p>
