how does the first part of this work?
<p>I have this snippet of <a href="http://jsfiddle.net/gL2kY/" rel="nofollow">jquery</a> and i want to know how it works....i understand the keypup but what i dont understand is the data ..what is it doing and </p>

<p>here is the parts i dont understand</p>

<pre><code>$('p span').each(function(){
   $(this).data('factor',$(this).text());
})
</code></pre>

<p>and </p>

<pre><code>$('p span').each(function(){
$(this).text(function(){
return $(this).data('factor') * factor;
});
})
</code></pre>

<p>seems like they are looping but for what</p>
