AddEventListener not working in Safari for double-click event

In Safari the 'dblclick' event can not be attached using AddEventListener. See test case below:

Double-click or single-click the image
DOES NOT WORK IN SAFARI:

Waiting for event ...

A workaround is to trigger a timer when a single-click event is detected. If a second click on the same element occurs within 300ms, trigger a double-click event through code (i.e. call the double-click event handler). The solution has been implemented below:

Double-click or single-click the image
WORKS IN SAFARI:

Waiting for event ...

NOTE: Tested with Safari 1.3.1