title: Don't Animate X If Animation X Already Running (inside keyup)
body: <p>The way it's currently written causes the hide to fire over and over if msg.d starts returning 'false' from 'true' until enough time has passed for the animation to stop.</p>
  
  <p>Is there an isHiding or something?</p>
  
  <p>Thanks in advance!</p>
  
  <pre><code>if(msg.d == "true") {
      if(!$("#addContactEmailError").is(":visible")) {
           $("#addContactEmailError").show('bounce');
      }
      $("#addContactSubmitButton").attr("disabled", true);
  }
  else {
      if($("#addContactEmailError").is(":visible")) {
           $("#addContactEmailError").hide('slide', { direction: "up" });
      }
      $("#addContactSubmitButton").attr("disabled", false);
  }
  </code></pre>
  
  <p><strong>Edit 1</strong></p>
  
  <p>This is all in a keyup handler.</p>
  
  <p><strong>Edit 2</strong></p>
  
  <p>Using animated only fires the animation when it's completed.  If msg.d changes, but the now incorrect animation isn't finished, the correct animation won't fire.</p>
  
  <p><strong>Lame Solution</strong></p>
  
  <p>I used a global boolean to keep track of the state.  I hate doing that.  Putting up a bounty for a better solution when I can.  Thanks to all!</p>
  
  <p><strong>Canceled Bounty</strong></p>
  
  <p>Sorry guys, didn't realize I had to buy with my own rep. :(</p>