How to prevent events from being bound multiple times
<pre><code> $('.ajax').click
 (        
    function()
    {
        // If been bound then we need to return here.
        alert(':D');
    }
 )

 $('.ajax').click
 (
    function()
    {
        // If been bound then we need to return here.
        alert(':D');
    }
 )
</code></pre>

<p>In this case, I have called duplicate code. How do I detect if the event has been bound to prevent it from triggering two alert boxes?</p>
