Add node to jQuery selection
<p>I have a function that applies a wrap to different elements (and does some other stuff that is not relevant for this question). I would like the function to return the globality of the wrap element as jQuery selection. I dont want to have to reselect them.</p>

<p>i have tried something like this:</p>

<pre><code>myfunction(){
 return $mythings.each(function(){
  $wrap = $("div.wrap");
  $(this).wrap($wrap);
  //do some other stuff
  return $wrap;
 });
};
</code></pre>

<p>but this was returning $mythings.</p>

<p>So i tried this:</p>

<pre><code>myfunction(){
 var $returnOfTheWrap = $();

 $mythings.each(function(){
  $wrap = $("div.wrap");
  $(this).wrap($wrap);
  //some different actions
  return $returnOfTheWrap.push($wrap);
 });

 return $returnOfTheWrap;
};
</code></pre>

<p>returns $($(wrap)); </p>

<p>Any idea how i could solve this? I would like to get $(wrap0, wrap1, wrap2) back</p>
