title: Toggle Between 2 Functions
body: <p>I'm trying to make a toggle function, so when you click a link it does one thing and when you click the same link again it does another thing. My problem comes is that I'm using the latest version of Jquery and it seems that toggle-event is <a href="http://api.jquery.com/toggle-event/" rel="nofollow">Deprecated</a>.</p>
  
  <p>I was trying to work with this before I found it was deprecated. </p>
  
  <pre><code>$('#edit a').toggle(
       function(){
          editList();
      },
       function(){
          addList();
  });
  </code></pre>
  
  <p>It says in the docs that it's already binded to click.</p>