title: Javascript function wrapper fails?
body: <p>I am looking to add functionality to a jQuery method.</p>
  
  <p>I have the code</p>
  
  <pre><code>$('li.s').appendTo('#target');
  </code></pre>
  
  <p>There are multiple elements which match <code>li.s</code>, and I can see it's grabbed correctly using Firebug.</p>
  
  <p>The <code>append</code> method works fine without my wrapper.  However, with my wrapper (which shouldn't change anything about the function):</p>
  
  <pre><code>var oldAppend = $.fn.append;
  
  $.fn.append = function(expr) {
      return oldAppend.call(this, expr);
  };
  </code></pre>
  
  <p>The correct jQuery object is returned, but only the first <code>li.s</code> is appended to <code>#target</code>, instead of all of them.  Why is this?  Where am I losing my other elements in the call to <code>oldAppend</code>?</p>