JS Is there a way to check if an event exists?

animation, events, javascript, webkit

Solution

Detecting event support without browser sniffing suggests that this ought to work:

'onWebkitAnimationEnd' in document.createElement('div');

Problem

I am trying to detect if a certain webkit event '`webkitAnimationEnd`' is supported by the browser, to do so I like to check if the event exists. But I can't seem to figure out how. Does anyone have a clue?

Original source