title: Any way to avoid using anonymous functions in jQuery?
body: <p>If I have a chunk of code like this:</p>
  
  <pre><code>.hover(
          function () {
              hoverState($("#navbar a").index(this),1);
          },
          function () {
              hoverState($("#navbar a").index(this),-1);
  });
  </code></pre>
  
  <p>Is there any way to get rid of the anonymous functions and just say:</p>
  
  <pre><code>.hover(
      hoverState($("#navbar a").index(this),1),
      hoverState($("#navbar a").index(this),-1);
  );
  </code></pre>