When we use alert(), some times the code breaks.
For example:
HTML:
Hi
Javascript:
Using alert() stops all code execution. It would be impossible to capture a double-click if you are already capturing the single click on stopping code execution.
To demonstrate, I've commented out the alert for the single click in your fiddle. You can see HERE that the alert now happens on the double click.