jpillora/xhook — pull request #7 by cairo140 (2013-10-31 00:33:47+00:00)
Title: wrapping fake event making logic with a catch

the ultimate goal is to produce the most convincing event-like object available on the platform. it is known on android 4.1.2 and safari on windows that Event cannot be used as a constructor, and this is a sort of next best option for those platforms.

should fix #5

I tested this on Browserstack with Safari (where new Event was likewise failing) and it worked fine.