title: jQuery stop(true, true) to jump to end of all animations in queue
body: <p>I have been using jQuery's <code>stop(true, true)</code> method to clear running animations so the next one starts immediately. I noticed that the first parameter, <code>clearQueue</code>, clears the entire animation queue but the second parameter, <code>jumpToEnd</code>, only jumps to the end of the currently running animation and not the ones that were removed from the queue. Is there a way to have it clear and jump to the end of all queued animations?</p>
  
  <p>I've ended up chaining a few <code>stop(false, true)</code> calls instead, but this will only handle 3 queued animations, for example.</p>
  
  <pre class="lang-js prettyprint-override"><code>$(this)
    .stop(false, true)
    .stop(false, true)
    .stop(false, true)
    .addClass('hover', 200);
  </code></pre>
  
  <p><strong>Edit:</strong></p>
  
  <p>I ended up adding my own method, <code>stopAll</code>, as per Ates Goral's answer:</p>
  
  <pre class="lang-js prettyprint-override"><code>$.fn.extend({ stopAll: function () {
      while (this.queue().length &gt; 0)
        this.stop(false, true);
      return this;
    } });
  </code></pre>
  
  <pre class="lang-js prettyprint-override"><code>$(this).stopAll().addClass('hover', 200);
  </code></pre>
  
  <p>I hope someone else finds this useful.</p>