People who double click everything on web pages... jQuery double click problemo
<p>I have a link on a web page opens up a modal dialog. The first time the link is clicked  initialization code executes. Subsequent clicks do not need to do any processing. The problem here is when people double click the link the initializing code runs twice -even though I am setting a flag immediately to say that I am initialized, and if flagged don't run the init function. What should I do?</p>

<ul>
<li>I could unbind the click function on
this link when clicked, but then I
need to bind the function again when
the dialog closes. </li>
<li>I could bind to the dblclick event
and return false? </li>
<li>I could save the 'lastclicked' time
on the element, and then check if say
2 seconds has past before letting the
event fire?</li>
</ul>
