Polymorphic function as event callback
<p>I need to pass this function as a callback to DOM event</p>

<pre><code>var fooo = function() {
  $(this).append("foo");
  fooo = function() {
     $(this).append("bar");
  };
};

$("#hover").hover(fooo);​
</code></pre>

<p>This example should append "foo" and then "bar"s, however it doesn't work. What am I doing wrong?</p>

<p><a href="http://jsfiddle.net/tNBx9/" rel="nofollow">JSFiddle</a></p>
