How to fix problems with mouseup and mousedown?
<p>I have the following code that returns 'haha' when the user clicks up and down.  I am having trouble with the amount of times this gets retuned though.  The first time I click up/down, 'haha' only gets returned once.  The second time I go through this, it gets printed twice.  The third time, 'haha' gets printed 3 times and so on.  Any advice on why this is happening?  I only want 'haha' to be printed once for each up/down.</p>

<pre><code>                $(".test").mousedown(function(){
                 $(".test").mouseup(function(){
                  console.log('haha');

                  });
                });
</code></pre>
