title: How does end() work for animate()?
body: <p>I'm currently looking into chaining my jquery code. An element needs to ditch a border, animated. My solution: animate the borderWidth to zero and then remove the class:</p>
  
  <pre><code>$(".imgWrap", element).animate({ borderWidth: "0px" }).end()
      .removeClass("border");
  </code></pre>
  
  <p>animate() is supposed to return the wrapped element, but what I understand from the jQuery API, <code>end()</code> will return the object to its state before the call to <code>.find</code>.</p>
  
  <p><code>.find</code> is in the context of the example so I took the liberty to replace it with <code>.animate</code>. Alas, this does not work for me. The result of <code>.end()</code> is the result of <code>.animate()</code>. </p>