Passing a jQuery event as a variable
<p>You can do this with JavaScript:</p>

<pre><code>function bar(test) {
    alert(test);
}
var foo = bar;
foo('hi');
</code></pre>

<p>I'd like to be able to do something similar with a jQuery event:</p>

<pre><code>var foo = $('#bork').click;
foo(function() { alert('I was just clicked.'); });
</code></pre>

<p>However, I get an error when the page loads: <code>this.bind is not a function</code>. Am I doing something wrong with the events here? Is there a better way to get the same effect?</p>
