I wonder if there is a way to cancel an event call? If there is, you could put a short delay in the click event and add a cancellation of the click event in the dblclick event. Or, maybe you could use a toggle for the single click, delay the action, and then the second click would undo the toggle while it fires dblclick?
I'm just thinking on the fly here :-)