How to wrap existing event handler without modifying "this"?
<p>I am using some existing code that has an form submit handler:</p>

<pre><code>function AjaxFormSubmit(e) {
 [...]
 var form = $(this);
 [...]
}
</code></pre>

<p>To bind the handler in my view code I have this:</p>

<pre><code>$('myForm').submit(AjaxFormSubmit);
</code></pre>

<p>What I want to do is run some other code before calling AjaxFormSubmit with something like this:</p>

<pre><code>$('myForm').submit(function(e) {
doSomething();
AjaxFormSubmit(e);
});
</code></pre>

<p>The problem is that in AjaxFormSubmit, the call to <strong>$(this)</strong> doesn't get the form element. What is the best way to achieve this?</p>
