Trigger function on $(window).resize and $("#foo").scroll
<p>Would like to trigger the same function on $(window).resize and on $("#foo").scroll.</p>

<p><a href="http://jsfiddle.net/ySukf/1/" rel="nofollow">http://jsfiddle.net/ySukf/1/</a></p>

<p>Need <code>#stick</code> to stick to the top of <code>#foo</code>. The problem is that the position of <code>#stick</code> gets a bit jumpy when scrolling and when resizing the window. Any help?</p>
