How to pass arguments to an event handler function and still use 'this' reference?
<p>I have a situation (using the Raphael library) where I have this:</p>

<pre><code>rect.click(doSomething);
</code></pre>

<p>And within <code>doSomething()</code>, I can get the bounding box size:</p>

<pre><code>var boxSize = this.getBBox();
</code></pre>

<p>The problem is, what if I want to pass an argument to doSomething? If I do, then the <code>this</code> reference breaks for some reason. How can I pass in an argument and still use <code>this</code>?</p>
