javascript function - return value chain
<p>I need to access local variable returned by function inside a chained function</p>

<p>ex.</p>

<pre><code>$("#history_table").bind("sortStart", function() {
     var a=30;
     return a;
}).bind("sortEnd", function() {
     alert(a);               
});
</code></pre>

<p>here in this example I need to access variable a returned by the first function, sortStart and aortEnd events will trigger the two functions asynchronously... </p>
